提交 16a1c064 编写于 作者: F Florian Fainelli 提交者: David S. Miller

net: bgmac: Correctly annotate register space

All the members: base, idm_base and nicpm_base should be annotated with
__iomem since they are pointers to register space. This fixes a bunch of
sparse reported warnings.

Fixes: f6a95a24 ("net: ethernet: bgmac: Add platform device support")
Fixes: dd5c5d03 ("net: ethernet: bgmac: add NS2 support")
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6174a30d
...@@ -479,9 +479,9 @@ struct bgmac_rx_header { ...@@ -479,9 +479,9 @@ struct bgmac_rx_header {
struct bgmac { struct bgmac {
union { union {
struct { struct {
void *base; void __iomem *base;
void *idm_base; void __iomem *idm_base;
void *nicpm_base; void __iomem *nicpm_base;
} plat; } plat;
struct { struct {
struct bcma_device *core; struct bcma_device *core;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册