switch skfp over to initcalls
Subsystems (2)
PATCH 1/1 switch skfp over to initcalls
This is a PCI driver and has no business in Space.c. Also allows to kill all the fddi code in there (and the stale reference to the long gone apfddi driver)
drivers/net/Space.c +0 -72
@@ -105,9 +105,6 @@/* Detachable devices ("pocket adaptors") */ extern int de620_probe (struct net_device *); -/* FDDI adapters */ -extern int skfp_probe (struct net_device *dev); -/* Fibre Channel adapters */ extern int iph5526_probe (struct net_device *dev);
@@ -401,29 +398,6 @@return -ENODEV ; } -#ifdef CONFIG_FDDI -static int __init fddiif_probe (struct net_device *dev) -{ -unsigned long base_addr = dev->base_addr; - -if (base_addr ==1 ) -return 1 ;/* ENXIO */ - -if (1 -#ifdef CONFIG_APFDDI - &&apfddi_init (dev) -#endif -#ifdef CONFIG_SKFP - &&skfp_probe (dev) -#endif - &&1 ) { -return 1 ;/* -ENODEV or -EAGAIN would be more accurate. */ - } -return 0 ; -} -#endif - -#ifdef CONFIG_NET_FC static int fcif_probe (struct net_device *dev) {
@@ -614,52 +588,6 @@#define NEXT_DEV (&tr0_dev)#endif - -#ifdef CONFIG_FDDI -static struct net_device fddi7_dev = { - .name ="fddi7" , - .next =NEXT_DEV , - .init = fddiif_probe -}; -static struct net_device fddi6_dev = { - .name ="fddi6" , - .next = &fddi7_dev, - .init = fddiif_probe -}; -static struct net_device fddi5_dev = { - .name ="fddi5" , - .next = &fddi6_dev, - .init = fddiif_probe -}; -static struct net_device fddi4_dev = { - .name ="fddi4" , - .next = &fddi5_dev, - .init = fddiif_probe -}; -static struct net_device fddi3_dev = { - .name ="fddi3" , - .next = &fddi4_dev, - .init = fddiif_probe -}; -static struct net_device fddi2_dev = { - .name ="fddi2" , - .next = &fddi3_dev, - .init = fddiif_probe -}; -static struct net_device fddi1_dev = { - .name ="fddi1" , - .next = &fddi2_dev, - .init = fddiif_probe -}; -static struct net_device fddi0_dev = { - .name ="fddi0" , - .next = &fddi1_dev, - .init = fddiif_probe -}; -#undef NEXT_DEV -#define NEXT_DEV (&fddi0_dev) -#endif -#ifdef CONFIG_NET_FC static struct net_device fc1_dev = {
drivers/net/skfp/skfddi.c +10 -51
87 lines not on this page · raw message