public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: <linville@tuxdriver.com>
Cc: <linux-kernel@vger.kernel.org>
Cc: <linux-wireless@vger.kernel.org>
Cc: <netdev@vger.kernel.org>
Subject: [PATCH 2/5] Net: ath5k, switch to ioread/iowrite
Date: Tue, 28 Aug 2007 11:59:28 -0400	[thread overview]
Message-ID: <309922776495964008@pripojeni.net> (raw)
In-Reply-To: <2713029743177393055@pripojeni.net>

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@gmail.com>

---
commit 64b9d0578668fe8c7a43eadace673bc3e57fc22b
tree 4990ed95e4112d79830d306ab6ae7afb2235f190
parent f65aa1c7d680d1bcde1ae20749eeda6d3ec02652
author Jiri Slaby <jirislaby@gmail.com> Tue, 28 Aug 2007 16:06:28 +0200
committer Jiri Slaby <jirislaby@gmail.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

       reply	other threads:[~2007-08-28 15:59 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2713029743177393055@pripojeni.net>
2007-08-28 15:59 ` Jiri Slaby [this message]
2007-08-28 16:00 ` [PATCH 3/5] Net: ath5k, use int as retval Jiri Slaby
2007-08-30 12:40   ` John W. Linville
2007-09-01 20:08     ` Jiri Slaby
2007-09-02 15:55       ` Nick Kossifidis
2007-08-28 16:00 ` [PATCH 4/5] Net: ath5k, license is GPLv2 Jiri Slaby
2007-08-28 17:11   ` Christoph Hellwig
2007-08-28 20:11     ` Luis R. Rodriguez
2007-08-29 17:29     ` Valdis.Kletnieks
2007-08-29 18:01       ` Jon Smirl
2007-08-29 18:28         ` Alan Cox
2007-08-29 19:33           ` Jon Smirl
2007-08-29 19:37             ` Michael Buesch
2007-08-30  8:26               ` Jarek Poplawski
2007-08-30  8:32                 ` Jarek Poplawski
2007-08-29 19:45             ` Alan Cox
2007-08-30 13:45               ` Jarek Poplawski
2007-08-30 13:02             ` David Newall
2007-08-29  9:59   ` Johannes Berg
2007-08-29 10:35     ` Jiri Slaby
2007-08-29 13:13       ` Xavier Bestel
2007-08-30 11:59         ` Johannes Berg
2007-08-28 16:01 ` [PATCH 5/5] Net: ath5k, kconfig changes Jiri Slaby
2007-08-28 17:13   ` Christoph Hellwig
2007-08-30  1:38     ` Nick Kossifidis
2007-08-30 12:35       ` Christoph Hellwig
2007-08-30 12:36       ` John W. Linville
2007-08-30 22:18         ` Nick Kossifidis
2007-09-01  5:58           ` Nick Kossifidis
2007-08-31 11:58         ` Dan Williams
2007-08-31 13:30           ` Jeff Garzik
2007-08-31 14:32             ` Dan Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=309922776495964008@pripojeni.net \
    --to=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox