diff options
author | Nicolas Ferre <nicolas.ferre@microchip.com> | 2020-07-10 15:46:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-11 00:29:37 +0300 |
commit | 515a10a701d570e26dfbe6ee373f77c8bf11053f (patch) | |
tree | 32996c6b205620e76a702244fc0610067d1eebf0 /lib/bch.c | |
parent | c8b1d7436045d3599bae56aef1682813ecccaad7 (diff) | |
download | linux-515a10a701d570e26dfbe6ee373f77c8bf11053f.tar.xz |
net: macb: fix wakeup test in runtime suspend/resume routines
Use the proper struct device pointer to check if the wakeup flag
and wakeup source are positioned.
Use the one passed by function call which is equivalent to
&bp->dev->dev.parent.
It's preventing the trigger of a spurious interrupt in case the
Wake-on-Lan feature is used.
Fixes: d54f89af6cc4 ("net: macb: Add pm runtime support")
Cc: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: Harini Katakam <harini.katakam@xilinx.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions