From 637110fa7787c82258bd393b593abed66b70cf5e Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Wed, 4 Jan 2012 13:57:48 +0100 Subject: [PATCH] Minor changes. --- devices/r8169-2.6.33-ethercat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/r8169-2.6.33-ethercat.c b/devices/r8169-2.6.33-ethercat.c index 2225d287..2b75435c 100644 --- a/devices/r8169-2.6.33-ethercat.c +++ b/devices/r8169-2.6.33-ethercat.c @@ -3233,6 +3233,7 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) RTL_W16(CPlusCmd, RTL_R16(CPlusCmd) | RxVlan); device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL); + if (tp->ecdev && ecdev_open(tp->ecdev)) { ecdev_withdraw(tp->ecdev); goto err_out_msi_5; @@ -4783,7 +4784,6 @@ static void rtl8169_down(struct net_device *dev) netif_stop_queue(dev); napi_disable(&tp->napi); - } core_down: