From 0af602e04e0a3d3ed3c4f4e641a515e37f485bbb Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Mon, 22 Feb 2010 22:08:45 +0100 Subject: [PATCH] Avoid compiler warning. --- devices/e100-2.6.27-ethercat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devices/e100-2.6.27-ethercat.c b/devices/e100-2.6.27-ethercat.c index a9786bb5..90ec27f0 100644 --- a/devices/e100-2.6.27-ethercat.c +++ b/devices/e100-2.6.27-ethercat.c @@ -2888,8 +2888,10 @@ static int __devinit e100_probe(struct pci_dev *pdev, 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);