[Prism54-devel] patch to allow cvs version compiled and used under 2.6.11 kernel

Eero Volotinen eero.volotinen at pronics.com
Sun Apr 17 15:16:44 UTC 2005


diff -up prism54.old/islpci_hotplug.c prism54/islpci_hotplug.c
--- prism54.old/islpci_hotplug.c        2005-04-17 17:54:06.202074000 +0300
+++ prism54/islpci_hotplug.c    2005-04-17 18:07:06.395467160 +0300
@@ -29,6 +29,13 @@
 #include "islpci_mgt.h"                /* for pc_debug */
 #include "isl_oid.h"

+/* some interface changes */
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9))
+# define pci_save_state(a,b) pci_save_state(a)
+# define pci_restore_state(a,b) pci_restore_state(a)
+#endif
+
+
 #define DRV_NAME       "prism54"
 #define DRV_VERSION    "1.2"

diff -up prism54.old/islpci_mgt.c prism54/islpci_mgt.c
--- prism54.old/islpci_mgt.c    2005-04-17 17:54:06.207073000 +0300
+++ prism54/islpci_mgt.c        2005-04-17 18:05:04.586984864 +0300
@@ -39,6 +39,12 @@
 #include "isl_ap.h"
 #endif

+
+/* some interface changes */
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9))
+# define pci_dma_sync_single(a,b,c,d) pci_dma_sync_single_for_cpu(a,b,c,d)
+#endif
+
 /******************************************************************************
         Global variable definition section
 ******************************************************************************/

Don't know if this is elegant way.. but it works.

-- 
Eero



More information about the Prism54-devel mailing list