diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-27 10:57:17 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-23 21:27:02 -0500 |
commit | 120f83f8d6f2e2e7dea3570646722c62ecee70b0 (patch) | |
tree | 3d4ef381ac5908c725683ee3790701d0fa40c92e | |
parent | b99dbe56d511eb07de33bfa1b99ac5a6ff76ae08 (diff) |
scsi: fdomain: drop fdomain_pci_tbl when built-in
The fdomain SCSI host driver is one of the last remaining drivers that
manually search the PCI bus using pci_get_device rather than registering
a pci_driver instance.
This means the module device table is unused when the driver is
built-in, and we get a warning about it:
drivers/scsi/fdomain.c:1773:29: warning: 'fdomain_pci_tbl' defined but not used [-Wunused-variable]
To avoid the warning, this adds another #ifdef around the table
definition.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/fdomain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index eefe14d453db..b87ab38a4530 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c | |||
@@ -1768,7 +1768,7 @@ struct scsi_host_template fdomain_driver_template = { | |||
1768 | }; | 1768 | }; |
1769 | 1769 | ||
1770 | #ifndef PCMCIA | 1770 | #ifndef PCMCIA |
1771 | #ifdef CONFIG_PCI | 1771 | #if defined(CONFIG_PCI) && defined(MODULE) |
1772 | 1772 | ||
1773 | static struct pci_device_id fdomain_pci_tbl[] = { | 1773 | static struct pci_device_id fdomain_pci_tbl[] = { |
1774 | { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, | 1774 | { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, |