Avoid compiler warning.
authorFlorian Pose <fp@igh-essen.com>
Mon, 22 Feb 2010 22:08:45 +0100
changeset 1819 44f6ca6974fd
parent 1818 deda3dc1d561
child 1821 40321a37d085
Avoid compiler warning.
devices/e100-2.6.27-ethercat.c
--- a/devices/e100-2.6.27-ethercat.c	Wed Feb 17 18:18:56 2010 +0100
+++ b/devices/e100-2.6.27-ethercat.c	Mon Feb 22 22:08:45 2010 +0100
@@ -2888,8 +2888,10 @@
 		device_set_wakeup_enable(&pdev->dev, true);
 	}
 
+#ifdef CONFIG_PCI // avoid compiler error on kernels not supporting PCI
 	/* ack any pending wake events, disable PME */
 	pci_pme_active(pdev, false);
+#endif
 
 	// offer device to EtherCAT master module
 	nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);