提交 0ee0bbb0 编写于 作者: Z zhengbin 提交者: 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: NHulk Robot <hulkci@huawei.com>
Fixes: 8aaa112a ("net: atlantic: refactoring pm logic")
Signed-off-by: Nzhengbin <zhengbin13@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册