sun3lance.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) | sun3lance.c (8c6ffba0eddc8c110dbf444f51354ce42069abfc) |
---|---|
1/* sun3lance.c: Ethernet driver for SUN3 Lance chip */ 2/* 3 4 Sun3 Lance ethernet driver, by Sam Creasey (sammy@users.qual.net). 5 This driver is a part of the linux kernel, and is thus distributed 6 under the GNU General Public License. 7 8 The values used in LANCE_OBIO and LANCE_IRQ seem to be empirically --- 926 unchanged lines hidden (view full) --- 935 936#ifdef MODULE 937 938static struct net_device *sun3lance_dev; 939 940int __init init_module(void) 941{ 942 sun3lance_dev = sun3lance_probe(-1); | 1/* sun3lance.c: Ethernet driver for SUN3 Lance chip */ 2/* 3 4 Sun3 Lance ethernet driver, by Sam Creasey (sammy@users.qual.net). 5 This driver is a part of the linux kernel, and is thus distributed 6 under the GNU General Public License. 7 8 The values used in LANCE_OBIO and LANCE_IRQ seem to be empirically --- 926 unchanged lines hidden (view full) --- 935 936#ifdef MODULE 937 938static struct net_device *sun3lance_dev; 939 940int __init init_module(void) 941{ 942 sun3lance_dev = sun3lance_probe(-1); |
943 return PTR_RET(sun3lance_dev); | 943 return PTR_ERR_OR_ZERO(sun3lance_dev); |
944} 945 946void __exit cleanup_module(void) 947{ 948 unregister_netdev(sun3lance_dev); 949#ifdef CONFIG_SUN3 950 iounmap((void __iomem *)sun3lance_dev->base_addr); 951#endif 952 free_netdev(sun3lance_dev); 953} 954 955#endif /* MODULE */ 956 | 944} 945 946void __exit cleanup_module(void) 947{ 948 unregister_netdev(sun3lance_dev); 949#ifdef CONFIG_SUN3 950 iounmap((void __iomem *)sun3lance_dev->base_addr); 951#endif 952 free_netdev(sun3lance_dev); 953} 954 955#endif /* MODULE */ 956 |