Commit c48a2916355337895aea33839d39810eb575e775
1 parent
3561d43fd2
Exists in
master
and in
39 other branches
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/hwmon/i5k_amb.c
... | ... | @@ -497,12 +497,14 @@ |
497 | 497 | 0 |
498 | 498 | }; |
499 | 499 | |
500 | +#ifdef MODULE | |
500 | 501 | static struct pci_device_id i5k_amb_ids[] __devinitdata = { |
501 | 502 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, |
502 | 503 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, |
503 | 504 | { 0, } |
504 | 505 | }; |
505 | 506 | MODULE_DEVICE_TABLE(pci, i5k_amb_ids); |
507 | +#endif | |
506 | 508 | |
507 | 509 | static int __devinit i5k_amb_probe(struct platform_device *pdev) |
508 | 510 | { |