diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 6905f2d84c44f48ba8611b222910a3b06a6464f6..22f34cf4cb27d1aad06dcb41a1f6d84d4dffd688 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -238,6 +238,7 @@ static void dsa_switch_destroy(struct dsa_switch *ds) { } +#ifdef CONFIG_PM_SLEEP static int dsa_switch_suspend(struct dsa_switch *ds) { int i, ret = 0; @@ -280,6 +281,7 @@ static int dsa_switch_resume(struct dsa_switch *ds) return 0; } +#endif /* link polling *************************************************************/