mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Tested-by: Vivien Didelot <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
0ae940c7a7
commit
ea825e70d0
2 changed files with 18 additions and 2 deletions
|
|
@ -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 *****************************************/
|
||||
|
|
|
|||
Loading…
Reference in a new issue