net: ethernet: dwmac: fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:31:30 +0000 (12:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 15:42:27 +0000 (11:42 -0400)
Fixes the following sparse warning:

drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:172:1: warning:
 symbol 'stm32_dwmac_pm_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c

index 79d8b926f17cc9b2651f4d5769513e6169c9768b..e5a926b8bee7274fc2bd2ce4a60525831e91dce4 100644 (file)
@@ -169,7 +169,8 @@ static int stm32_dwmac_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-SIMPLE_DEV_PM_OPS(stm32_dwmac_pm_ops, stm32_dwmac_suspend, stm32_dwmac_resume);
+static SIMPLE_DEV_PM_OPS(stm32_dwmac_pm_ops,
+       stm32_dwmac_suspend, stm32_dwmac_resume);
 
 static const struct of_device_id stm32_dwmac_match[] = {
        { .compatible = "st,stm32-dwmac"},