Commit 2ca48230 authored by Gabriel C's avatar Gabriel C Committed by James Bottomley

[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: default avatarGabriel Craciunescu <nix.or.die@googlemail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 89932697
...@@ -387,7 +387,9 @@ static void __iomem * bios_mem; ...@@ -387,7 +387,9 @@ static void __iomem * bios_mem;
static int bios_major; static int bios_major;
static int bios_minor; static int bios_minor;
static int PCI_bus; static int PCI_bus;
#ifdef CONFIG_PCI
static struct pci_dev *PCI_dev; static struct pci_dev *PCI_dev;
#endif
static int Quantum; /* Quantum board variant */ static int Quantum; /* Quantum board variant */
static int interrupt_level; static int interrupt_level;
static volatile int in_command; static volatile int in_command;
...@@ -1764,6 +1766,7 @@ struct scsi_host_template fdomain_driver_template = { ...@@ -1764,6 +1766,7 @@ struct scsi_host_template fdomain_driver_template = {
}; };
#ifndef PCMCIA #ifndef PCMCIA
#ifdef CONFIG_PCI
static struct pci_device_id fdomain_pci_tbl[] __devinitdata = { static struct pci_device_id fdomain_pci_tbl[] __devinitdata = {
{ PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70,
...@@ -1771,7 +1774,7 @@ static struct pci_device_id fdomain_pci_tbl[] __devinitdata = { ...@@ -1771,7 +1774,7 @@ static struct pci_device_id fdomain_pci_tbl[] __devinitdata = {
{ } { }
}; };
MODULE_DEVICE_TABLE(pci, fdomain_pci_tbl); MODULE_DEVICE_TABLE(pci, fdomain_pci_tbl);
#endif
#define driver_template fdomain_driver_template #define driver_template fdomain_driver_template
#include "scsi_module.c" #include "scsi_module.c"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment