Skip to content
Commit e506d405 authored by Thierry Reding's avatar Thierry Reding Committed by David S. Miller
Browse files

net: dsa: Fix build warning for !PM_SLEEP



The dsa_switch_suspend() and dsa_switch_resume() functions are only used
when PM_SLEEP is enabled, so they need #ifdef CONFIG_PM_SLEEP protection
to avoid a compiler warning.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3c87dcbf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment