SOURCES: rt2500-2.6.24.patch (NEW) - patch for kernel 2.6.24

zbyniu zbyniu at pld-linux.org
Sun Mar 2 23:17:39 CET 2008


Author: zbyniu                       Date: Sun Mar  2 22:17:39 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch for kernel 2.6.24

---- Files affected:
SOURCES:
   rt2500-2.6.24.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rt2500-2.6.24.patch
diff -u /dev/null SOURCES/rt2500-2.6.24.patch:1.1
--- /dev/null	Sun Mar  2 23:17:39 2008
+++ SOURCES/rt2500-2.6.24.patch	Sun Mar  2 23:17:34 2008
@@ -0,0 +1,26 @@
+--- rt2500-1.1.0-b4/Module/rtmp_main.c.	2008-03-02 23:07:01.962750249 +0100
++++ rt2500-1.1.0-b4/Module/rtmp_main.c	2008-03-02 23:07:55.959039225 +0100
+@@ -199,8 +199,9 @@ INT __devinit   RT2500_probe(
+         DBGPRINT(RT_DEBUG_TRACE, "init_ethernet failed\n");
+         goto err_out;
+     }
+-
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+     SET_MODULE_OWNER(net_dev);
++#endif
+ 
+     #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
+        SET_NETDEV_DEV(net_dev, &(pPci_Dev->dev));
+@@ -339,8 +340,11 @@ INT RT2500_open(
+     {
+         NICDisableInterrupt(pAd);
+     }
+-
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
++    status = request_irq(pAd->pPci_Dev->irq, &RTMPIsr, IRQF_SHARED, net_dev->name, net_dev);
++#else
+     status = request_irq(pAd->pPci_Dev->irq, &RTMPIsr, SA_SHIRQ, net_dev->name, net_dev);
++#endif
+     if (status)
+     {
+         goto out_module_put;
================================================================


More information about the pld-cvs-commit mailing list