ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c
(Generate patch)

Comparing BasiliskII/src/Unix/Linux/NetDriver/sheep_net.c (file contents):
Revision 1.4 by cebix, 2001-03-18T15:41:17Z vs.
Revision 1.5 by cebix, 2001-03-28T14:18:58Z

# Line 18 | Line 18
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19   */
20  
21 #include <linux/kernel.h>
21   #include <linux/module.h>
22   #include <linux/version.h>
23 +
24 + #ifdef CONFIG_MODVERSIONS
25 + #define MODVERSIONS
26 + #include <linux/modversions.h>
27 + #endif
28 +
29 + #ifdef CONFIG_SMP
30 + #define __SMP__
31 + #endif
32 +
33   #include <linux/miscdevice.h>
34   #include <linux/netdevice.h>
35   #include <linux/etherdevice.h>
# Line 36 | Line 45
45   #include <net/ip.h>
46   #include <asm/uaccess.h>
47  
48 + MODULE_AUTHOR("Christian Bauer");
49 + MODULE_DESCRIPTION("Pseudo ethernet device for emulators");
50 +
51   /* Compatibility glue */
52   #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
53   #define LINUX_24
# Line 138 | Line 150 | int init_module(void)
150   *  Deinitialize module
151   */
152  
153 < int cleanup_module(void)
153 > void cleanup_module(void)
154   {
143        int ret;
144
155          /* Unregister driver */
156 <        ret = misc_deregister(&sheep_net_device);
156 >        misc_deregister(&sheep_net_device);
157          D(bug("Sheep net driver removed\n"));
148        return ret;
158   }
159  
160  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines