atarilance.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) | atarilance.c (8c6ffba0eddc8c110dbf444f51354ce42069abfc) |
---|---|
1/* atarilance.c: Ethernet driver for VME Lance cards on the Atari */ 2/* 3 Written 1995/96 by Roman Hodek (Roman.Hodek@informatik.uni-erlangen.de) 4 5 This software may be used and distributed according to the terms 6 of the GNU General Public License, incorporated herein by reference. 7 8 This drivers was written with the following sources of reference: --- 1133 unchanged lines hidden (view full) --- 1142 1143 1144#ifdef MODULE 1145static struct net_device *atarilance_dev; 1146 1147static int __init atarilance_module_init(void) 1148{ 1149 atarilance_dev = atarilance_probe(-1); | 1/* atarilance.c: Ethernet driver for VME Lance cards on the Atari */ 2/* 3 Written 1995/96 by Roman Hodek (Roman.Hodek@informatik.uni-erlangen.de) 4 5 This software may be used and distributed according to the terms 6 of the GNU General Public License, incorporated herein by reference. 7 8 This drivers was written with the following sources of reference: --- 1133 unchanged lines hidden (view full) --- 1142 1143 1144#ifdef MODULE 1145static struct net_device *atarilance_dev; 1146 1147static int __init atarilance_module_init(void) 1148{ 1149 atarilance_dev = atarilance_probe(-1); |
1150 return PTR_RET(atarilance_dev); | 1150 return PTR_ERR_OR_ZERO(atarilance_dev); |
1151} 1152 1153static void __exit atarilance_module_exit(void) 1154{ 1155 unregister_netdev(atarilance_dev); 1156 free_irq(atarilance_dev->irq, atarilance_dev); 1157 free_netdev(atarilance_dev); 1158} 1159module_init(atarilance_module_init); 1160module_exit(atarilance_module_exit); 1161#endif /* MODULE */ 1162 1163 1164/* 1165 * Local variables: 1166 * c-indent-level: 4 1167 * tab-width: 4 1168 * End: 1169 */ | 1151} 1152 1153static void __exit atarilance_module_exit(void) 1154{ 1155 unregister_netdev(atarilance_dev); 1156 free_irq(atarilance_dev->irq, atarilance_dev); 1157 free_netdev(atarilance_dev); 1158} 1159module_init(atarilance_module_init); 1160module_exit(atarilance_module_exit); 1161#endif /* MODULE */ 1162 1163 1164/* 1165 * Local variables: 1166 * c-indent-level: 4 1167 * tab-width: 4 1168 * End: 1169 */ |