Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

SCSI: initio: remove duplicate module device table

The initio driver has for many years had two copies of the
same module device table. One of them is also used for registering
the other driver, the other one is entirely useless after the
large scale cleanup that Alan Cox did back in 2007.

The compiler warns about this whenever the driver is built-in:

drivers/scsi/initio.c:131:29: warning: 'i91u_pci_devices' defined but not used [-Wunused-variable]

This removes the extraneous table and the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 72d39fea901 ("[SCSI] initio: Convert into a real Linux driver and update to modern style")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Arnd Bergmann and committed by
Martin K. Petersen
d282e2b3 940a7f09

-16
-16
drivers/scsi/initio.c
··· 110 110 #define i91u_MAXQUEUE 2 111 111 #define i91u_REVID "Initio INI-9X00U/UW SCSI device driver; Revision: 1.04a" 112 112 113 - #define I950_DEVICE_ID 0x9500 /* Initio's inic-950 product ID */ 114 - #define I940_DEVICE_ID 0x9400 /* Initio's inic-940 product ID */ 115 - #define I935_DEVICE_ID 0x9401 /* Initio's inic-935 product ID */ 116 - #define I920_DEVICE_ID 0x0002 /* Initio's other product ID */ 117 - 118 113 #ifdef DEBUG_i91u 119 114 static unsigned int i91u_debug = DEBUG_DEFAULT; 120 115 #endif ··· 121 126 #endif 122 127 123 128 static void i91uSCBPost(u8 * pHcb, u8 * pScb); 124 - 125 - /* PCI Devices supported by this driver */ 126 - static struct pci_device_id i91u_pci_devices[] = { 127 - { PCI_VENDOR_ID_INIT, I950_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 128 - { PCI_VENDOR_ID_INIT, I940_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 129 - { PCI_VENDOR_ID_INIT, I935_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 130 - { PCI_VENDOR_ID_INIT, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 131 - { PCI_VENDOR_ID_DOMEX, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 132 - { } 133 - }; 134 - MODULE_DEVICE_TABLE(pci, i91u_pci_devices); 135 129 136 130 #define DEBUG_INTERRUPT 0 137 131 #define DEBUG_QUEUE 0