diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-11-19 09:39:11 -0800 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-11-22 12:23:39 -0800 |
commit | c48a2916355337895aea33839d39810eb575e775 (patch) | |
tree | b2b8792d5aa8de6aebd15178d5d5921ccf698e1d /drivers/hwmon/i5k_amb.c | |
parent | 3561d43fd289f590fdae672e5eb831b8d5cf0bf6 (diff) |
hwmon: (i5k_amb) Fix compile warning
This patch fixes the following compile warning.
drivers/hwmon/i5k_amb.c:500: warning: 'i5k_amb_ids' defined but not used
The warning is seen if the driver is built into the kernel (not as module).
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/i5k_amb.c')
-rw-r--r-- | drivers/hwmon/i5k_amb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index 937983407e2a..c4c40be0edbf 100644 --- a/drivers/hwmon/i5k_amb.c +++ b/drivers/hwmon/i5k_amb.c @@ -497,12 +497,14 @@ static unsigned long chipset_ids[] = { 0 }; +#ifdef MODULE static struct pci_device_id i5k_amb_ids[] __devinitdata = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, { 0, } }; MODULE_DEVICE_TABLE(pci, i5k_amb_ids); +#endif static int __devinit i5k_amb_probe(struct platform_device *pdev) { |