diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2006-02-01 15:18:03 -0600 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-07 02:04:33 -0500 |
commit | cc8c6e379ca30a18cb18553abeb15fe19120bf7b (patch) | |
tree | b3b43e6496a364bba9121036c97e02af4b9cb8d2 /drivers/net/gianfar.h | |
parent | 3e710bfa6d92e777050f19a52b4fbbb7eeffb3a0 (diff) | |
download | blackbird-op-linux-cc8c6e379ca30a18cb18553abeb15fe19120bf7b.tar.gz blackbird-op-linux-cc8c6e379ca30a18cb18553abeb15fe19120bf7b.zip |
[PATCH] gianfar: Fix sparse warnings
Fixed sparse warnings mainly due to lack of __iomem.
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index cb9d66ac3ab9..d37d5401be6e 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h @@ -682,8 +682,8 @@ struct gfar_private { struct rxbd8 *cur_rx; /* Next free rx ring entry */ struct txbd8 *cur_tx; /* Next free ring entry */ struct txbd8 *dirty_tx; /* The Ring entry to be freed. */ - struct gfar *regs; /* Pointer to the GFAR memory mapped Registers */ - u32 *hash_regs[16]; + struct gfar __iomem *regs; /* Pointer to the GFAR memory mapped Registers */ + u32 __iomem *hash_regs[16]; int hash_width; struct net_device_stats stats; /* linux network statistics */ struct gfar_extra_stats extra_stats; @@ -718,14 +718,14 @@ struct gfar_private { uint32_t msg_enable; }; -static inline u32 gfar_read(volatile unsigned *addr) +static inline u32 gfar_read(volatile unsigned __iomem *addr) { u32 val; val = in_be32(addr); return val; } -static inline void gfar_write(volatile unsigned *addr, u32 val) +static inline void gfar_write(volatile unsigned __iomem *addr, u32 val) { out_be32(addr, val); } |