diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-10 12:31:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-13 11:42:27 -0400 |
commit | a5f54fcc8a63f4e93ea48243c3a762aa848299d5 (patch) | |
tree | bd6d72def7930e4ec0e91f943287783e75fa81fb /drivers | |
parent | a7c22bda52e24094c7bc96afcd897ddad2b28bc0 (diff) | |
download | linux-stable-a5f54fcc8a63f4e93ea48243c3a762aa848299d5.tar.gz linux-stable-a5f54fcc8a63f4e93ea48243c3a762aa848299d5.tar.bz2 linux-stable-a5f54fcc8a63f4e93ea48243c3a762aa848299d5.zip |
net: ethernet: dwmac: fix non static symbol warning
Fixes the following sparse warning:
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:172:1: warning:
symbol 'stm32_dwmac_pm_ops' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c index 79d8b926f17c..e5a926b8bee7 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c @@ -169,7 +169,8 @@ static int stm32_dwmac_resume(struct device *dev) } #endif /* CONFIG_PM_SLEEP */ -SIMPLE_DEV_PM_OPS(stm32_dwmac_pm_ops, stm32_dwmac_suspend, stm32_dwmac_resume); +static SIMPLE_DEV_PM_OPS(stm32_dwmac_pm_ops, + stm32_dwmac_suspend, stm32_dwmac_resume); static const struct of_device_id stm32_dwmac_match[] = { { .compatible = "st,stm32-dwmac"}, |