Skip to content

Commit

Permalink
[SCSI] fdomain: fix CONFIG_PCI=n warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gabriel C authored and James Bottomley committed Oct 12, 2007
1 parent 8993269 commit 2ca4823
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/scsi/fdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ static void __iomem * bios_mem;
static int bios_major;
static int bios_minor;
static int PCI_bus;
#ifdef CONFIG_PCI
static struct pci_dev *PCI_dev;
#endif
static int Quantum; /* Quantum board variant */
static int interrupt_level;
static volatile int in_command;
Expand Down Expand Up @@ -1764,14 +1766,15 @@ struct scsi_host_template fdomain_driver_template = {
};

#ifndef PCMCIA
#ifdef CONFIG_PCI

static struct pci_device_id fdomain_pci_tbl[] __devinitdata = {
{ PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
{ }
};
MODULE_DEVICE_TABLE(pci, fdomain_pci_tbl);

#endif
#define driver_template fdomain_driver_template
#include "scsi_module.c"

Expand Down

0 comments on commit 2ca4823

Please sign in to comment.