cops.c (df9b42963f2d010ae3163a894ce22cf6b27cd344) | cops.c (8c6ffba0eddc8c110dbf444f51354ce42069abfc) |
---|---|
1/* cops.c: LocalTalk driver for Linux. 2 * 3 * Authors: 4 * - Jay Schulist <jschlst@samba.org> 5 * 6 * With more than a little help from; 7 * - Alan Cox <alan@lxorguk.ukuu.org.uk> 8 * --- 982 unchanged lines hidden (view full) --- 991module_param(board_type, int, 0); 992 993static int __init cops_module_init(void) 994{ 995 if (io == 0) 996 printk(KERN_WARNING "%s: You shouldn't autoprobe with insmod\n", 997 cardname); 998 cops_dev = cops_probe(-1); | 1/* cops.c: LocalTalk driver for Linux. 2 * 3 * Authors: 4 * - Jay Schulist <jschlst@samba.org> 5 * 6 * With more than a little help from; 7 * - Alan Cox <alan@lxorguk.ukuu.org.uk> 8 * --- 982 unchanged lines hidden (view full) --- 991module_param(board_type, int, 0); 992 993static int __init cops_module_init(void) 994{ 995 if (io == 0) 996 printk(KERN_WARNING "%s: You shouldn't autoprobe with insmod\n", 997 cardname); 998 cops_dev = cops_probe(-1); |
999 return PTR_RET(cops_dev); | 999 return PTR_ERR_OR_ZERO(cops_dev); |
1000} 1001 1002static void __exit cops_module_exit(void) 1003{ 1004 unregister_netdev(cops_dev); 1005 cleanup_card(cops_dev); 1006 free_netdev(cops_dev); 1007} 1008module_init(cops_module_init); 1009module_exit(cops_module_exit); 1010#endif /* MODULE */ | 1000} 1001 1002static void __exit cops_module_exit(void) 1003{ 1004 unregister_netdev(cops_dev); 1005 cleanup_card(cops_dev); 1006 free_netdev(cops_dev); 1007} 1008module_init(cops_module_init); 1009module_exit(cops_module_exit); 1010#endif /* MODULE */ |