Skip to content

Commit 421d9df

Browse files
Cyrille Pitchendavem330
authored andcommitted
net/macb: merge at91_ether driver into macb driver
macb and at91_ether drivers can be compiled as modules, but the at91_ether driver use some functions and variables defined in the macb one, thus creating a dependency on the macb driver. Since these drivers are sharing the same logic we can easily merge at91_ether into macb. In order to factorize common probing logic we've added an ->init() function to struct macb_config (the structure associated with the compatible string), and moved macb specific init code from macb_probe to macb_init. Signed-off-by: Cyrille Pitchen <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Tested-by: Alexandre Belloni <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 93b31f4 commit 421d9df

File tree

5 files changed

+484
-655
lines changed

5 files changed

+484
-655
lines changed

drivers/net/ethernet/cadence/Kconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ config NET_CADENCE
2020

2121
if NET_CADENCE
2222

23-
config ARM_AT91_ETHER
24-
tristate "AT91RM9200 Ethernet support"
25-
depends on HAS_DMA && (ARCH_AT91 || COMPILE_TEST)
26-
select MACB
27-
---help---
28-
If you wish to compile a kernel for the AT91RM9200 and enable
29-
ethernet support, then you should always answer Y to this.
30-
3123
config MACB
3224
tristate "Cadence MACB/GEM support"
3325
depends on HAS_DMA

drivers/net/ethernet/cadence/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
# Makefile for the Atmel network device drivers.
33
#
44

5-
obj-$(CONFIG_ARM_AT91_ETHER) += at91_ether.o
65
obj-$(CONFIG_MACB) += macb.o

0 commit comments

Comments
 (0)