Commit 0ee0bbb0 authored by zhengbin's avatar zhengbin Committed by David S. Miller

net: atlantic: make symbol 'aq_pm_ops' static

Fix sparse warnings:

drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:426:25: warning: symbol 'aq_pm_ops' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: 8aaa112a ("net: atlantic: refactoring pm logic")
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b55cbbee
......@@ -423,7 +423,7 @@ static int aq_pm_resume_restore(struct device *dev)
return atl_resume_common(dev, true);
}
const struct dev_pm_ops aq_pm_ops = {
static const struct dev_pm_ops aq_pm_ops = {
.suspend = aq_pm_suspend_poweroff,
.poweroff = aq_pm_suspend_poweroff,
.freeze = aq_pm_freeze,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment