[<prev] [next>] [day] [month] [year] [list]
Message-id: <309922776495964008@pripojeni.net>
Date: Tue, 28 Aug 2007 11:59:28 -0400
From: Jiri Slaby <jirislaby@...il.com>
To: <linville@...driver.com>
Cc: <netdev@...r.kernel.org>
Subject: [PATCH 2/5] Net: ath5k, switch to ioread/iowrite
ath5k, switch to ioread/iowrite
Do not use readl/writel, since iomap retval is platform dependent and
needn't be virtual address awaited by readl/writel.
Signed-off-by: Jiri Slaby <jirislaby@...il.com>
---
commit 64b9d0578668fe8c7a43eadace673bc3e57fc22b
tree 4990ed95e4112d79830d306ab6ae7afb2235f190
parent f65aa1c7d680d1bcde1ae20749eeda6d3ec02652
author Jiri Slaby <jirislaby@...il.com> Tue, 28 Aug 2007 16:06:28 +0200
committer Jiri Slaby <jirislaby@...il.com> Tue, 28 Aug 2007 16:24:50 +0200
drivers/net/wireless/ath5k.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath5k.h b/drivers/net/wireless/ath5k.h
index 0bb62dc..26f1229 100644
--- a/drivers/net/wireless/ath5k.h
+++ b/drivers/net/wireless/ath5k.h
@@ -1018,12 +1018,12 @@ extern int ath5k_hw_set_txpower_limit(struct ath_hw *hal, unsigned int power);
static inline u32 ath5k_hw_reg_read(struct ath_hw *hal, u16 reg)
{
- return readl(hal->ah_sh + reg);
+ return ioread32(hal->ah_sh + reg);
}
static inline void ath5k_hw_reg_write(struct ath_hw *hal, u32 val, u16 reg)
{
- writel(val, hal->ah_sh + reg);
+ iowrite32(val, hal->ah_sh + reg);
}
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists