File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
drivers/net/ethernet/stmicro/stmmac Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1688,6 +1688,15 @@ static int rk_gmac_resume(struct device *dev)
1688
1688
}
1689
1689
#endif /* CONFIG_PM_SLEEP */
1690
1690
1691
+ #ifdef CONFIG_PM
1692
+ extern void rtl8211f_shutdown (void );
1693
+ static void stmmac_pltfr_shutdown (struct platform_device * dev )
1694
+ {
1695
+ rtl8211f_shutdown ();
1696
+ }
1697
+ #endif
1698
+
1699
+
1691
1700
static SIMPLE_DEV_PM_OPS (rk_gmac_pm_ops , rk_gmac_suspend , rk_gmac_resume ) ;
1692
1701
1693
1702
static const struct of_device_id rk_gmac_dwmac_match [] = {
@@ -1709,6 +1718,9 @@ MODULE_DEVICE_TABLE(of, rk_gmac_dwmac_match);
1709
1718
static struct platform_driver rk_gmac_dwmac_driver = {
1710
1719
.probe = rk_gmac_probe ,
1711
1720
.remove = rk_gmac_remove ,
1721
+ #ifdef CONFIG_PM
1722
+ .shutdown = stmmac_pltfr_shutdown ,
1723
+ #endif
1712
1724
.driver = {
1713
1725
.name = "rk_gmac-dwmac" ,
1714
1726
.pm = & rk_gmac_pm_ops ,
You can’t perform that action at this time.
0 commit comments