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>

+2
+2
drivers/hwmon/i5k_amb.c
··· 497 0 498 }; 499 500 static struct pci_device_id i5k_amb_ids[] __devinitdata = { 501 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, 502 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, 503 { 0, } 504 }; 505 MODULE_DEVICE_TABLE(pci, i5k_amb_ids); 506 507 static int __devinit i5k_amb_probe(struct platform_device *pdev) 508 {
··· 497 0 498 }; 499 500 + #ifdef MODULE 501 static struct pci_device_id i5k_amb_ids[] __devinitdata = { 502 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, 503 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, 504 { 0, } 505 }; 506 MODULE_DEVICE_TABLE(pci, i5k_amb_ids); 507 + #endif 508 509 static int __devinit i5k_amb_probe(struct platform_device *pdev) 510 {