Skip to content

Commit bfca2eb

Browse files
manabiandavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 20e6133 commit bfca2eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ static int socfpga_dwmac_resume(struct device *dev)
271271
}
272272
#endif /* CONFIG_PM_SLEEP */
273273

274-
SIMPLE_DEV_PM_OPS(socfpga_dwmac_pm_ops, stmmac_suspend, socfpga_dwmac_resume);
274+
static SIMPLE_DEV_PM_OPS(socfpga_dwmac_pm_ops, stmmac_suspend,
275+
socfpga_dwmac_resume);
275276

276277
static const struct of_device_id socfpga_dwmac_match[] = {
277278
{ .compatible = "altr,socfpga-stmmac" },

0 commit comments

Comments
 (0)