aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac
diff options
context:
space:
mode:
authorJoachim Eastwood <manabian@gmail.com>2016-05-08 13:47:23 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-09 22:39:59 -0400
commitbfca2eba2adaa9501656f503559a971de6927fa8 (patch)
tree3f3bd84d7af5c5ecb9d1d55bb331d1e0f80ea849 /drivers/net/ethernet/stmicro/stmmac
parentMerge branch 'l3mdev-send-enslaved' (diff)
downloadlinux-dev-bfca2eba2adaa9501656f503559a971de6927fa8.tar.xz
linux-dev-bfca2eba2adaa9501656f503559a971de6927fa8.zip
stmmac: dwmac-socfpga: make socfpga_dwmac_pm_ops static
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
index cd9764a6a36f..f13499fa1f58 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
@@ -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" },