projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r8169: improve setting WoL on runtime-resume
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
realtek
/
r8169_main.c
diff --git
a/drivers/net/ethernet/realtek/r8169_main.c
b/drivers/net/ethernet/realtek/r8169_main.c
index
4bc6c55
..
bd95c0a
100644
(file)
--- a/
drivers/net/ethernet/realtek/r8169_main.c
+++ b/
drivers/net/ethernet/realtek/r8169_main.c
@@
-4887,14
+4887,12
@@
static int rtl8169_runtime_resume(struct device *device)
rtl_rar_set(tp, tp->dev->dev_addr);
- if (!tp->TxDescArray)
- return 0;
-
rtl_lock_work(tp);
__rtl8169_set_wol(tp, tp->saved_wolopts);
rtl_unlock_work(tp);
- __rtl8169_resume(tp);
+ if (tp->TxDescArray)
+ __rtl8169_resume(tp);
return 0;
}