]> git.baikalelectronics.ru Git - kernel.git/commitdiff
stmmac: dwmac-socfpga: make socfpga_dwmac_pm_ops static
authorJoachim Eastwood <manabian@gmail.com>
Sun, 8 May 2016 11:47:23 +0000 (13:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2016 02:39:59 +0000 (22:39 -0400)
Fix the following sparse warning:
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:274:1: warning:
  symbol 'socfpga_dwmac_pm_ops' was not declared. Should it be static?

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c

index cd9764a6a36f87d3972adcb72dd20b883126f503..f13499fa1f581581501c33b42f173f26291a6be2 100644 (file)
@@ -271,7 +271,8 @@ static int socfpga_dwmac_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-SIMPLE_DEV_PM_OPS(socfpga_dwmac_pm_ops, stmmac_suspend, socfpga_dwmac_resume);
+static SIMPLE_DEV_PM_OPS(socfpga_dwmac_pm_ops, stmmac_suspend,
+                                              socfpga_dwmac_resume);
 
 static const struct of_device_id socfpga_dwmac_match[] = {
        { .compatible = "altr,socfpga-stmmac" },