]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Fix build warning for !PM_SLEEP
authorThierry Reding <treding@nvidia.com>
Wed, 1 Oct 2014 11:59:00 +0000 (13:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2014 19:24:00 +0000 (15:24 -0400)
commit40f9462cd6996f93ff47ade2e100339504d21a77
tree7537278bdfcd62e05c9dcc619039dc6effc60dc5
parent7629277f49cfdf5b839f2795389f737f065ce442
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: Thierry Reding <treding@nvidia.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c