Skip to content
Snippets Groups Projects
Commit 04d30138 authored by Florian Pose's avatar Florian Pose
Browse files

Avoid compiler warning.

parent 88036c94
No related branches found
No related tags found
No related merge requests found
...@@ -2888,8 +2888,10 @@ static int __devinit e100_probe(struct pci_dev *pdev, ...@@ -2888,8 +2888,10 @@ static int __devinit e100_probe(struct pci_dev *pdev,
device_set_wakeup_enable(&pdev->dev, true); 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 */ /* ack any pending wake events, disable PME */
pci_pme_active(pdev, false); pci_pme_active(pdev, false);
#endif
// offer device to EtherCAT master module // offer device to EtherCAT master module
nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE); nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment