1. 11 8月, 2011 1 次提交
    • J
      smsc: Move the SMC (SMSC) drivers · ae150435
      Jeff Kirsher 提交于
      Moves the SMC (SMSC) drivers into drivers/net/ethernet/smsc/ and the
      necessary Kconfig and Makefile changes.  Also did some cleanup
      of NET_VENDOR_SMC Kconfig tag for the 8390 based drivers.
      
      CC: Nicolas Pitre <nico@fluxnic.net>
      CC: Donald Becker <becker@scyld.com>
      CC: Erik Stahlman <erik@vt.edu>
      CC: Dustin McIntire <dustin@sensoria.com>
      CC: Steve Glendinning <steve.glendinning@smsc.com>
      CC: David Hinds <dahinds@users.sourceforge.net>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      ae150435
  2. 30 7月, 2011 1 次提交
    • D
      smc91c92_cs.c: fix bogus compiler warning · 74411c04
      Dominik Brodowski 提交于
      On a recent compile, I got this warning:
      
        CC [M]  drivers/net/pcmcia/smc91c92_cs.o
      drivers/net/pcmcia/smc91c92_cs.c: In function ‘smc91c92_probe’:
      drivers/net/pcmcia/smc91c92_cs.c:812:12: warning: ‘j’ may be used uninitialized in this function
      
      However, "j" is only used in a branch which has the same condition as
      a previous branch, where j is set, e.g.
      
      	int j;
      
      	if (CONDITION)
      	    j = VALUE
      
      	...
      
      	if (CONDITION)
      	   printk(j)
      
      Still, avoid this warning, as it is easy to circumvent.
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      74411c04
  3. 06 5月, 2011 1 次提交
  4. 30 4月, 2011 2 次提交
  5. 31 3月, 2011 1 次提交
  6. 29 9月, 2010 10 次提交
  7. 27 9月, 2010 1 次提交
  8. 26 8月, 2010 1 次提交
  9. 19 8月, 2010 1 次提交
    • J
      drivers/net/pcmcia: Use pr_<level> and netdev_<level> · 636b8116
      Joe Perches 提交于
      On Mon, 2010-08-09 at 17:34 +0200, Dominik Brodowski wrote:
      > look good from a PCMCIA point of view, therefore:
      > Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
      
      If PCMCIA is still being looked after, then here's
      another for you, maybe for 2.6.37.
      
      Use the more descriptive logging message styles.
      
      There are whitespace/indentation errors in the original
      sources that these changes do not modify, so checkpatch
      errors were cheerfully ignored.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      636b8116
  10. 03 8月, 2010 3 次提交
    • D
      pcmcia: remove memreq_t · b5cb259e
      Dominik Brodowski 提交于
      Page already had to be set to 0; Offset can easily be passed as
      parameter to pcmcia_map_mem_page.
      
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-usb@vger.kernel.org
      CC: laforge@gnumonks.org
      CC: linux-mtd@lists.infradead.org
      CC: linux-bluetooth@vger.kernel.org
      CC: alsa-devel@alsa-project.org
      CC: linux-serial@vger.kernel.org
      CC: Michael Buesch <mb@bu3sch.de>
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      b5cb259e
    • D
      pcmcia: do not use io_req_t when calling pcmcia_request_io() · 90abdc3b
      Dominik Brodowski 提交于
      Instead of io_req_t, drivers are now requested to fill out
      struct pcmcia_device *p_dev->resource[0,1] for up to two ioport
      ranges. After a call to pcmcia_request_io(), the ports found there
      are reserved, after calling pcmcia_request_configuration(), they may
      be used.
      
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-usb@vger.kernel.org
      CC: laforge@gnumonks.org
      CC: linux-mtd@lists.infradead.org
      CC: alsa-devel@alsa-project.org
      CC: linux-serial@vger.kernel.org
      CC: Michael Buesch <mb@bu3sch.de>
      Acked-by: Marcel Holtmann <marcel@holtmann.org> (for drivers/bluetooth/)
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      90abdc3b
    • D
      pcmcia: do not use io_req_t after call to pcmcia_request_io() · 9a017a91
      Dominik Brodowski 提交于
      After pcmcia_request_io(), do not make use of the values stored in
      io_req_t, but instead use those found in struct pcmcia_device->resource[].
      
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-usb@vger.kernel.org
      CC: laforge@gnumonks.org
      CC: linux-mtd@lists.infradead.org
      CC: alsa-devel@alsa-project.org
      CC: linux-serial@vger.kernel.org
      Acked-by: Marcel Holtmann <marcel@holtmann.org> (for drivers/bluetooth/)
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      9a017a91
  11. 31 7月, 2010 1 次提交
    • D
      pcmcia: remove cs_types.h · ac8b4228
      Dominik Brodowski 提交于
      Remove cs_types.h which is no longer needed: Most definitions aren't
      used at all, a few can be made away with, and two remaining definitions
      (typedefs, unfortunatley) may be moved to more specific places.
      
      CC: linux-ide@vger.kernel.org
      CC: linux-usb@vger.kernel.org
      CC: laforge@gnumonks.org
      CC: linux-mtd@lists.infradead.org
      CC: alsa-devel@alsa-project.org
      CC: linux-serial@vger.kernel.org
      Acked-by: Marcel Holtmann <marcel@holtmann.org> (for drivers/bluetooth/)
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      ac8b4228
  12. 26 6月, 2010 1 次提交
  13. 16 6月, 2010 1 次提交
  14. 08 6月, 2010 1 次提交
  15. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  16. 10 5月, 2010 3 次提交
    • E
      net: trans_start cleanups · 1ae5dc34
      Eric Dumazet 提交于
      Now that core network takes care of trans_start updates, dont do it
      in drivers themselves, if possible. Drivers can avoid one cache miss
      (on dev->trans_start) in their start_xmit() handler.
      
      Exceptions are NETIF_F_LLTX drivers
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1ae5dc34
    • D
      pcmcia: dev_node removal (drivers with unregister_netdev check) · c7c2fa07
      Dominik Brodowski 提交于
      As a third step, remove any usage of dev_node_t from drivers which
      only wrote to this typedef/struct, except to determine whether
      register_netdev() succeeded previously. However, the function calling
      unregister_netdev() was only ever called by the PCMCIA core if
      register_netdev() succeeded previously. The lonely exception was
      easily fixed.
      
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      c7c2fa07
    • D
      pcmcia: re-work pcmcia_request_irq() · eb14120f
      Dominik Brodowski 提交于
      Instead of the old pcmcia_request_irq() interface, drivers may now
      choose between:
      
      - calling request_irq/free_irq directly. Use the IRQ from *p_dev->irq.
      
      - use pcmcia_request_irq(p_dev, handler_t); the PCMCIA core will
        clean up automatically on calls to pcmcia_disable_device() or
        device ejection.
      
      - drivers still not capable of IRQF_SHARED (or not telling us so) may
        use the deprecated pcmcia_request_exclusive_irq() for the time
        being; they might receive a shared IRQ nonetheless.
      
      CC: linux-bluetooth@vger.kernel.org
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-serial@vger.kernel.org
      CC: alsa-devel@alsa-project.org
      CC: linux-usb@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      eb14120f
  17. 28 4月, 2010 1 次提交
  18. 13 4月, 2010 1 次提交
  19. 04 4月, 2010 2 次提交
  20. 20 2月, 2010 1 次提交
  21. 13 2月, 2010 1 次提交
  22. 18 1月, 2010 1 次提交
  23. 08 12月, 2009 1 次提交
  24. 04 12月, 2009 1 次提交
  25. 29 11月, 2009 1 次提交
    • D
      pcmcia: rework the irq_req_t typedef · 5fa9167a
      Dominik Brodowski 提交于
      Most of the irq_req_t typedef'd struct can be re-worked quite
      easily:
      
      (1) IRQInfo2 was unused in any case, so drop it.
      
      (2) IRQInfo1 was used write-only, so drop it.
      
      (3) Instance (private data to be passed to the IRQ handler):
      	Most PCMCIA drivers using pcmcia_request_irq() to actually
      	register an IRQ handler set the "dev_id" to the same pointer
      	as the "priv" pointer in struct pcmcia_device. Modify the two
      	exceptions (ipwireless, ibmtr_cs) to also work this waym and
      	set the IRQ handler's "dev_id" to p_dev->priv unconditionally.
      
      (4) Handler is to be of type irq_handler_t.
      
      (5) Handler != NULL already tells whether an IRQ handler is present.
      	Therefore, we do not need the IRQ_HANDLER_PRESENT flag in
      	irq_req_t.Attributes.
      
      CC: netdev@vger.kernel.org
      CC: linux-bluetooth@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-scsi@vger.kernel.org
      CC: alsa-devel@alsa-project.org
      CC: Jaroslav Kysela <perex@perex.cz>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Karsten Keil <isdn@linux-pingi.de>
      for the Bluetooth parts: Acked-by: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      5fa9167a