ath5k: don't use volatile, it's not needed
authorPavel Roskin <proski@gnu.org>
Thu, 7 Jul 2011 22:13:55 +0000 (18:13 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jul 2011 15:44:31 +0000 (11:44 -0400)
Signed-off-by: Pavel Roskin <proski@gnu.org>
The reg variable is only used by __raw_writel() and __raw_readl(), which
should guarantee memory access in the right order.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/reset.c

index 3188204..bbeef3a 100644 (file)
@@ -375,7 +375,7 @@ static int ath5k_hw_nic_reset(struct ath5k_hw *ah, u32 val)
 static int ath5k_hw_wisoc_reset(struct ath5k_hw *ah, u32 flags)
 {
        u32 mask = flags ? flags : ~0U;
-       volatile __iomem u32 *reg;
+       u32 __iomem *reg;
        u32 regval;
        u32 val = 0;