devices/e100-2.6.27-ethercat.c
changeset 1821 40321a37d085
parent 1819 44f6ca6974fd
child 2582 87e502828b3f
equal deleted inserted replaced
1820:eec8a41bfb9f 1821:40321a37d085
  2886 	   (nic->eeprom[eeprom_id] & eeprom_id_wol)) {
  2886 	   (nic->eeprom[eeprom_id] & eeprom_id_wol)) {
  2887 		nic->flags |= wol_magic;
  2887 		nic->flags |= wol_magic;
  2888 		device_set_wakeup_enable(&pdev->dev, true);
  2888 		device_set_wakeup_enable(&pdev->dev, true);
  2889 	}
  2889 	}
  2890 
  2890 
       
  2891 #ifdef CONFIG_PCI // avoid compiler error on kernels not supporting PCI
  2891 	/* ack any pending wake events, disable PME */
  2892 	/* ack any pending wake events, disable PME */
  2892 	pci_pme_active(pdev, false);
  2893 	pci_pme_active(pdev, false);
       
  2894 #endif
  2893 
  2895 
  2894 	// offer device to EtherCAT master module
  2896 	// offer device to EtherCAT master module
  2895 	nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);
  2897 	nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);
  2896 	if (nic->ecdev) {
  2898 	if (nic->ecdev) {
  2897 		if (ecdev_open(nic->ecdev)) {
  2899 		if (ecdev_open(nic->ecdev)) {