lan743x: Make symbol lan743x_pm_ops static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 25 Jul 2018 06:11:16 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 23:37:55 +0000 (16:37 -0700)
Fixes the following sparse warning:

drivers/net/ethernet/microchip/lan743x_main.c:2944:25: warning:
 symbol 'lan743x_pm_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c

index cd41911..bb323f2 100644 (file)
@@ -2941,7 +2941,7 @@ static int lan743x_pm_resume(struct device *dev)
        return 0;
 }
 
-const struct dev_pm_ops lan743x_pm_ops = {
+static const struct dev_pm_ops lan743x_pm_ops = {
        SET_SYSTEM_SLEEP_PM_OPS(lan743x_pm_suspend, lan743x_pm_resume)
 };
 #endif /*CONFIG_PM */