Commit Graph
10 Commits
Author SHA1 Message Date
Wolfram Sang 5a8078bebd net: ethernet: sgi: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <[email protected]>
2014-10-20 16:21:12 +02:00
Paul Gortmaker a81ab36bf5 drivers/net: delete non-required instances of include <linux/init.h>
None of these files are actually using any __init type directives
and hence don't need to include <linux/init.h>.   Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.

This covers everything under drivers/net except for wireless, which
has been submitted separately.

Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2014-01-16 11:53:26 -08:00
Joe Perches d458cdf712 net:drivers/net: Miscellaneous conversions to ETH_ALEN
Convert the memset/memcpy uses of 6 to ETH_ALEN
where appropriate.

Also convert some struct definitions and u8 array
declarations of [6] to ETH_ALEN.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Arend van Spriel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-10-02 17:04:45 -04:00
Joe Perches ede23fa816 drivers:net: Convert dma_alloc_coherent(...__GFP_ZERO) to dma_zalloc_coherent
__GFP_ZERO is an uncommon flag and perhaps is better
not used.  static inline dma_zalloc_coherent exists
so convert the uses of dma_alloc_coherent with __GFP_ZERO
to the more common kernel style with zalloc.

Remove memset from the static inline dma_zalloc_coherent
and add just one use of __GFP_ZERO instead.

Trivially reduces the size of the existing uses of
dma_zalloc_coherent.

Realign arguments as appropriate.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Neil Horman <[email protected]>
Acked-by: Jesse Brandeburg <[email protected]>
Acked-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-08-29 21:55:23 -04:00
Jingoo Han dfd93c977d net: ethernet: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d06310
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Roland Stigge <[email protected]>
Acked-by: Mugunthan V N <[email protected]>
Reviewed-by: H Hartley Sweeten <[email protected]>
Tested-by: Roland Stigge <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-05-27 22:34:51 -07:00
Joe Perches 1f9061d27d drivers:net: dma_alloc_coherent: use __GFP_ZERO instead of memset(, 0)
Reduce the number of calls required to alloc
a zeroed block of memory.

Trivially reduces overall object size.

Other changes around these removals
o Neaten call argument alignment
o Remove an unnecessary OOM message after dma_alloc_coherent failure
o Remove unnecessary gfp_t stack variable

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-03-17 12:50:24 -04:00
Bill Pemberton f48a3c2af8 net/sgi: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Signed-off-by: Bill Pemberton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-12-03 11:16:55 -08:00
Joshua Kinard c0d2b8376a net: meth: Add set_rx_mode hook to fix ICMPv6 neighbor discovery
SGI IP32 (O2)'s ethernet driver (meth) lacks a set_rx_mode function, which
prevents IPv6 from working completely because any ICMPv6 neighbor
solicitation requests aren't picked up by the driver.  So the machine can
ping out and connect to other systems, but other systems will have a very
hard time connecting to the O2.

Signed-off-by: Joshua Kinard <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-12-27 13:17:34 -05:00
Axel Lin db62f684de net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver()
This patch converts the drivers in drivers/net/ethernet/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Cc: "David S. Miller" <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Vitaly Bordug <[email protected]>
Cc: Wan ZongShun <[email protected]>
Cc: Nicolas Pitre <[email protected]>
Cc: Giuseppe Cavallaro <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>
Cc: Jeff Kirsher <[email protected]>
Cc: Jiri Pirko <[email protected]>
Cc: Daniel Hellstrom <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Tobias Klauser <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Jonas Bonn <[email protected]>
Cc: Sebastian Poehn <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: Ricardo Ribalda Delgado <[email protected]>
Cc: "Michał Mirosław" <[email protected]>
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Wan ZongShun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2011-11-29 00:25:05 -05:00
Jeff Kirsher 8862bf1ed6 ioc3-eth/meth: Move the SGI drivers
Move the SGI drivers into drivers/net/ethernet/sgi/ and make the
necessary Kconfig and Makefile changes.

CC: Ralf Baechle <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
2011-08-12 00:21:33 -07:00