diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-08-18 22:30:12 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-20 00:15:36 (GMT) |
commit | ea825e70d0e0798eda3a57b05c90f21f5a369128 (patch) | |
tree | ef62bcb9973fa45bc6d796018a2c835dd2a15342 /net/dsa | |
parent | 0ae940c7a7734ed144103d67333e6b26342aa1e6 (diff) | |
download | linux-ea825e70d0e0798eda3a57b05c90f21f5a369128.tar.xz |
net: dsa: Export suspend/resume functions
In preparation for allowing switch drivers to implement system-wide
suspend/resume functions, export dsa_switch_suspend and
dsa_switch_resume() such that these are callable from the appropriate
driver specific suspend/resume functions.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/dsa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 7e68bc6..9f5b472 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -543,7 +543,7 @@ static void dsa_switch_destroy(struct dsa_switch *ds) } #ifdef CONFIG_PM_SLEEP -static int dsa_switch_suspend(struct dsa_switch *ds) +int dsa_switch_suspend(struct dsa_switch *ds) { int i, ret = 0; @@ -562,8 +562,9 @@ static int dsa_switch_suspend(struct dsa_switch *ds) return ret; } +EXPORT_SYMBOL_GPL(dsa_switch_suspend); -static int dsa_switch_resume(struct dsa_switch *ds) +int dsa_switch_resume(struct dsa_switch *ds) { int i, ret = 0; @@ -585,6 +586,7 @@ static int dsa_switch_resume(struct dsa_switch *ds) return 0; } +EXPORT_SYMBOL_GPL(dsa_switch_resume); #endif /* platform driver init and cleanup *****************************************/ |