aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel C <nix.or.die@googlemail.com>2007-10-02 17:38:02 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:54:47 -0400
commit2ca482302f2080e6861eaf753051ac35b6b411ad (patch)
tree9311029447d7bc8b243e901cb0123d0a0fbdd62a
parent89932697ce742c094916d8270c282042b24776b3 (diff)
[SCSI] fdomain: fix CONFIG_PCI=n warnings
I get this warnings on current git when CONFIG_PCI is not set : drivers/scsi/fdomain.c:390: warning: 'PCI_dev' defined but not used drivers/scsi/fdomain.c:1768: warning: 'fdomain_pci_tbl' defined but not used Signed-off-by: Gabriel Craciunescu <nix.or.die@googlemail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/fdomain.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index 36169d597e98..5d282e6a6ae1 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -387,7 +387,9 @@ static void __iomem * bios_mem;
387static int bios_major; 387static int bios_major;
388static int bios_minor; 388static int bios_minor;
389static int PCI_bus; 389static int PCI_bus;
390#ifdef CONFIG_PCI
390static struct pci_dev *PCI_dev; 391static struct pci_dev *PCI_dev;
392#endif
391static int Quantum; /* Quantum board variant */ 393static int Quantum; /* Quantum board variant */
392static int interrupt_level; 394static int interrupt_level;
393static volatile int in_command; 395static volatile int in_command;
@@ -1764,6 +1766,7 @@ struct scsi_host_template fdomain_driver_template = {
1764}; 1766};
1765 1767
1766#ifndef PCMCIA 1768#ifndef PCMCIA
1769#ifdef CONFIG_PCI
1767 1770
1768static struct pci_device_id fdomain_pci_tbl[] __devinitdata = { 1771static struct pci_device_id fdomain_pci_tbl[] __devinitdata = {
1769 { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, 1772 { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70,
@@ -1771,7 +1774,7 @@ static struct pci_device_id fdomain_pci_tbl[] __devinitdata = {
1771 { } 1774 { }
1772}; 1775};
1773MODULE_DEVICE_TABLE(pci, fdomain_pci_tbl); 1776MODULE_DEVICE_TABLE(pci, fdomain_pci_tbl);
1774 1777#endif
1775#define driver_template fdomain_driver_template 1778#define driver_template fdomain_driver_template
1776#include "scsi_module.c" 1779#include "scsi_module.c"
1777 1780