Skip to contentSkip to conversation

aic7xxx patches?

PATCH Marcus Meissner 1 participant 1 message May 22, 2001

lore
Share & tools
lore
#0 lore raw

Hi Justin, Alan, linux-kernel,

I do not know who is the right contact for AIC7xxx patches, so I am just ccing everone ;)

This patch just exports the PCI id table from aic7xxx so autoprobing and hotplugging can find it.

Whoever maintains aic7xxx, please consider applying :)

Ciao, Marcus

Index: drivers/scsi/aic7xxx/aic7xxx_linux_pci.c
===================================================================
RCS file: /build/mm/work/repository/linux-mm/drivers/scsi/aic7xxx/aic7xxx_linux_pci.c,v retrieving revision 1.7

scsi/aic7xxx/aic7xxx_linux_pci.c +6 -1
diff -u -r1.7 aic7xxx_linux_pci.c
@@ -42,9 +42,13 @@
 static int	ahc_linux_pci_dev_probe(struct pci_dev *pdev,
 					const struct pci_device_id *ent);
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
+#include <linux/module.h>
+
 static void	ahc_linux_pci_dev_remove(struct pci_dev *pdev);
 
-/* We do our own ID filtering.  So, grab all SCSI storage class devices. */
+/* We do our own ID filtering.  So we grab all Adaptec SCSI storage class
+ * devices here.
+ */
 static struct pci_device_id ahc_linux_pci_id_table[] = {
 	{
 		0x9004, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
@@ -56,6 +60,7 @@
 	},
 	{ 0 }
 };
+MODULE_DEVICE_TABLE(pci,ahc_linux_pci_id_table);
 
 struct pci_driver aic7xxx_pci_driver = {
 	name:		"aic7xxx",