PATCH: linux_2_4 jazzonic.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

drivers/net/jazzsonic.c

1) #include <linux/module.h>

2) Device address is "unsigned long"
as definded in the
include/linux/netdevice.h


P.S. It seems, 2.6 requires this too.


-- 
-=AV=- 
diff -Naur -p -X dontdiff linux_2_4/drivers/net/jazzsonic.c linux_2_4-jazz/drivers/net/jazzsonic.c
--- linux_2_4/drivers/net/jazzsonic.c   Fri Aug 20 10:47:05 2004
+++ linux_2_4-jazz/drivers/net/jazzsonic.c      Mon Oct 11 17:44:44 2004
@@ -14,6 +14,7 @@
  */

 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/types.h>
 #include <linux/fcntl.h>
@@ -84,7 +85,7 @@ static unsigned short known_revisions[]
 /* Index to functions, as function prototypes. */

 extern int sonic_probe(struct net_device *dev);
-static int sonic_probe1(struct net_device *dev, unsigned int base_addr,
+static int sonic_probe1(struct net_device *dev, unsigned long base_addr,
                         unsigned int irq);


@@ -94,7 +95,7 @@ static int sonic_probe1(struct net_devic
  */
 int __init sonic_probe(struct net_device *dev)
 {
-       unsigned int base_addr = dev ? dev->base_addr : 0;
+       unsigned long base_addr = dev ? dev->base_addr : 0;
        int i;

        /*
@@ -117,7 +118,7 @@ int __init sonic_probe(struct net_device
        return -ENODEV;
 }

-static int __init sonic_probe1(struct net_device *dev, unsigned int base_addr,
+static int __init sonic_probe1(struct net_device *dev, unsigned long base_addr,
                                unsigned int irq)
 {
        static unsigned version_printed;

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux