diff options
-rw-r--r-- | drivers/net/ethernet/i825xx/sun3_82586.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/ethernet/i825xx/sun3_82586.c b/drivers/net/ethernet/i825xx/sun3_82586.c index 6ef5e11d1c84..296cf8a0ee51 100644 --- a/drivers/net/ethernet/i825xx/sun3_82586.c +++ b/drivers/net/ethernet/i825xx/sun3_82586.c | |||
@@ -28,7 +28,6 @@ static int automatic_resume = 0; /* experimental .. better should be zero */ | |||
28 | static int rfdadd = 0; /* rfdadd=1 may be better for 8K MEM cards */ | 28 | static int rfdadd = 0; /* rfdadd=1 may be better for 8K MEM cards */ |
29 | static int fifo=0x8; /* don't change */ | 29 | static int fifo=0x8; /* don't change */ |
30 | 30 | ||
31 | #include <linux/module.h> | ||
32 | #include <linux/kernel.h> | 31 | #include <linux/kernel.h> |
33 | #include <linux/string.h> | 32 | #include <linux/string.h> |
34 | #include <linux/errno.h> | 33 | #include <linux/errno.h> |
@@ -1151,28 +1150,6 @@ static void set_multicast_list(struct net_device *dev) | |||
1151 | netif_wake_queue(dev); | 1150 | netif_wake_queue(dev); |
1152 | } | 1151 | } |
1153 | 1152 | ||
1154 | #ifdef MODULE | ||
1155 | #error This code is not currently supported as a module | ||
1156 | static struct net_device *dev_sun3_82586; | ||
1157 | |||
1158 | int init_module(void) | ||
1159 | { | ||
1160 | dev_sun3_82586 = sun3_82586_probe(-1); | ||
1161 | if (IS_ERR(dev_sun3_82586)) | ||
1162 | return PTR_ERR(dev_sun3_82586); | ||
1163 | return 0; | ||
1164 | } | ||
1165 | |||
1166 | void cleanup_module(void) | ||
1167 | { | ||
1168 | unsigned long ioaddr = dev_sun3_82586->base_addr; | ||
1169 | unregister_netdev(dev_sun3_82586); | ||
1170 | release_region(ioaddr, SUN3_82586_TOTAL_SIZE); | ||
1171 | iounmap((void *)ioaddr); | ||
1172 | free_netdev(dev_sun3_82586); | ||
1173 | } | ||
1174 | #endif /* MODULE */ | ||
1175 | |||
1176 | #if 0 | 1153 | #if 0 |
1177 | /* | 1154 | /* |
1178 | * DUMP .. we expect a not running CMD unit and enough space | 1155 | * DUMP .. we expect a not running CMD unit and enough space |
@@ -1209,5 +1186,3 @@ void sun3_82586_dump(struct net_device *dev,void *ptr) | |||
1209 | printk("\n"); | 1186 | printk("\n"); |
1210 | } | 1187 | } |
1211 | #endif | 1188 | #endif |
1212 | |||
1213 | MODULE_LICENSE("GPL"); | ||