diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ibm_emac/ibm_emac_mal.h | 4 | ||||
-rw-r--r-- | drivers/net/ibm_newemac/mal.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ibm_emac/ibm_emac_mal.h b/drivers/net/ibm_emac/ibm_emac_mal.h index aa76d3f0dfce..b8adbe6d4b01 100644 --- a/drivers/net/ibm_emac/ibm_emac_mal.h +++ b/drivers/net/ibm_emac/ibm_emac_mal.h | |||
@@ -208,12 +208,12 @@ struct ibm_ocp_mal { | |||
208 | 208 | ||
209 | static inline u32 get_mal_dcrn(struct ibm_ocp_mal *mal, int reg) | 209 | static inline u32 get_mal_dcrn(struct ibm_ocp_mal *mal, int reg) |
210 | { | 210 | { |
211 | return dcr_read(mal->dcrhost, mal->dcrhost.base + reg); | 211 | return dcr_read(mal->dcrhost, reg); |
212 | } | 212 | } |
213 | 213 | ||
214 | static inline void set_mal_dcrn(struct ibm_ocp_mal *mal, int reg, u32 val) | 214 | static inline void set_mal_dcrn(struct ibm_ocp_mal *mal, int reg, u32 val) |
215 | { | 215 | { |
216 | dcr_write(mal->dcrhost, mal->dcrhost.base + reg, val); | 216 | dcr_write(mal->dcrhost, reg, val); |
217 | } | 217 | } |
218 | 218 | ||
219 | /* Register MAL devices */ | 219 | /* Register MAL devices */ |
diff --git a/drivers/net/ibm_newemac/mal.h b/drivers/net/ibm_newemac/mal.h index 6daa98e5992e..784edb8ea822 100644 --- a/drivers/net/ibm_newemac/mal.h +++ b/drivers/net/ibm_newemac/mal.h | |||
@@ -212,12 +212,12 @@ struct mal_instance { | |||
212 | 212 | ||
213 | static inline u32 get_mal_dcrn(struct mal_instance *mal, int reg) | 213 | static inline u32 get_mal_dcrn(struct mal_instance *mal, int reg) |
214 | { | 214 | { |
215 | return dcr_read(mal->dcr_host, mal->dcr_host.base + reg); | 215 | return dcr_read(mal->dcr_host, reg); |
216 | } | 216 | } |
217 | 217 | ||
218 | static inline void set_mal_dcrn(struct mal_instance *mal, int reg, u32 val) | 218 | static inline void set_mal_dcrn(struct mal_instance *mal, int reg, u32 val) |
219 | { | 219 | { |
220 | dcr_write(mal->dcr_host, mal->dcr_host.base + reg, val); | 220 | dcr_write(mal->dcr_host, reg, val); |
221 | } | 221 | } |
222 | 222 | ||
223 | /* Register MAL devices */ | 223 | /* Register MAL devices */ |