devices/e100-2.6.27-ethercat.c
changeset 1819 44f6ca6974fd
parent 1546 f60cf2500bf8
child 2582 87e502828b3f
--- 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);