Skip to content

Commit

Permalink
lan743x: Make symbol lan743x_pm_ops static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Jul 25, 2018
1 parent 5547720 commit 41147bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/microchip/lan743x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 41147bb

Please sign in to comment.