Commit 29146e24 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

[NET]: Remove sdla from setup.c

parent 6a041226
...@@ -13,8 +13,6 @@ extern int dmascc_init(void); ...@@ -13,8 +13,6 @@ extern int dmascc_init(void);
extern int scc_enet_init(void); extern int scc_enet_init(void);
extern int fec_enet_init(void); extern int fec_enet_init(void);
extern int sdla_setup(void);
extern int sdla_c_setup(void);
/* /*
* Devices in this list must do new style probing. That is they must * Devices in this list must do new style probing. That is they must
...@@ -35,9 +33,6 @@ static struct net_probe pci_probes[] __initdata = { ...@@ -35,9 +33,6 @@ static struct net_probe pci_probes[] __initdata = {
#if defined(CONFIG_DMASCC) #if defined(CONFIG_DMASCC)
{dmascc_init, 0}, {dmascc_init, 0},
#endif #endif
#if defined(CONFIG_SDLA)
{sdla_c_setup, 0},
#endif
#if defined(CONFIG_SCC_ENET) #if defined(CONFIG_SCC_ENET)
{scc_enet_init, 0}, {scc_enet_init, 0},
#endif #endif
......
...@@ -1667,20 +1667,20 @@ static struct net_device sdla0 = { ...@@ -1667,20 +1667,20 @@ static struct net_device sdla0 = {
.name = "sdla0", .name = "sdla0",
.init = sdla_init .init = sdla_init
}; };
#endif /* MODULE */
MODULE_LICENSE("GPL"); static int __init init_sdla(void)
int init_module(void)
{ {
int result; int result = 0;
sdla_c_setup(); sdla_c_setup();
if ((result = register_netdev(&sdla0)) != 0) #ifdef MODULE
return result; result = register_netdev(&sdla0);
return 0; #endif
return result;
} }
void cleanup_module(void) static void __exit exit_sdla(void)
{ {
unregister_netdev(&sdla0); unregister_netdev(&sdla0);
if (sdla0.priv) if (sdla0.priv)
...@@ -1688,4 +1688,8 @@ void cleanup_module(void) ...@@ -1688,4 +1688,8 @@ void cleanup_module(void)
if (sdla0.irq) if (sdla0.irq)
free_irq(sdla0.irq, &sdla0); free_irq(sdla0.irq, &sdla0);
} }
#endif /* MODULE */
MODULE_LICENSE("GPL");
module_init(init_sdla);
module_exit(exit_sdla);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment