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

Re: Netwinder modules missing MODULE_DEVICE_TABLE() entry



[Ralph Siemsen]
> Feel free to send me a patch :)

Something like this should fix the cyberpro v4l driver.

I'm not sure about the waveartist module.  The device do not show up
on 'lspci'.  Is it an ISA device?  I'm unable to find it using
pnpdump.

diff -ur orig/cyber2000fb.h pere/cyber2000fb.h
--- orig/cyber2000fb.h  Thu Apr  4 21:37:48 2002
+++ pere/cyber2000fb.h  Thu Apr  4 21:46:48 2002
@@ -461,6 +461,24 @@
 struct fb_var_screeninfo;

 /*
+ * The list of supported PCI cards
+ */
+#define MAKE_CYPERPRO_PCI_TABLE(variable)                       \
+static struct pci_device_id variabl[] __devinitdata = {           \
+       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_1682,        \
+               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_IGA_1682 },      \
+       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_2000,        \
+               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_CYBERPRO_2000 }, \
+       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_2010,        \
+               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_CYBERPRO_2010 }, \
+       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_5000,        \
+               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_CYBERPRO_5000 }, \
+       { 0, }
+}
+
+
+
+/*
  * Note! Writing to the Cyber20x0 registers from an interrupt
  * routine is definitely a bad idea atm.
  */
diff -ur orig/cyber2000fb.c pere/cyber2000fb.c
--- orig/cyber2000fb.c  Thu Apr  4 21:37:48 2002
+++ pere/cyber2000fb.c  Thu Apr  4 21:46:54 2002
@@ -1906,17 +1906,7 @@
        return 0;
 }

-static struct pci_device_id cyberpro_pci_table[] __devinitdata = {
-       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_1682,
-               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_IGA_1682 },
-       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_2000,
-               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_CYBERPRO_2000 },
-       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_2010,
-               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_CYBERPRO_2010 },
-       { PCI_VENDOR_ID_INTERG, PCI_DEVICE_ID_INTERG_5000,
-               PCI_ANY_ID, PCI_ANY_ID, 0, 0, ID_CYBERPRO_5000 },
-       { 0, }
-};
+MAKE_CYPERPRO_PCI_TABLE(cyberpro_pci_table);

 MODULE_DEVICE_TABLE(pci,cyberpro_pci_table);

diff -ur orig/cyberpro.c pere/cyberpro.c
--- orig/cyberpro.c     Thu Apr  4 21:37:48 2002
+++ pere/cyberpro.c     Thu Apr  4 21:47:39 2002
@@ -878,6 +878,9 @@
        }
 }

+MAKE_CYPERPRO_PCI_TABLE(cyberpro_pci_table);
+MODULE_DEVICE_TABLE(pci,cyberpro_pci_table);
+
 static void __init cyberpro_frames_init(struct cyberpro_vidinfo *dp)
 {
        unsigned int offset, maxsize;


-- 
To UNSUBSCRIBE, email to debian-arm-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: