Skip to contentSkip to conversation

hpet: trivial __iomem annotations

PATCH New Al Viro 1 participant 1 message Feb 9, 2007

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 hpet: trivial __iomem annotations

---
 arch/i386/kernel/hpet.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/i386/kernel/hpet.c +2 -3
index 45a8685..0b29d41 100644
@@ -12,7 +12,7 @@
 /* FSEC = 10^-15 NSEC = 10^-9 */
 #define FSEC_PER_NSEC	1000000
 
-static void *hpet_ptr;
+static void __iomem *hpet_ptr;
 
 static cycle_t read_hpet(void)
 {
@@ -40,8 +40,7 @@ static int __init init_hpet_clocksource(void)
 		return -ENODEV;
 
 	/* calculate the hpet address: */
-	hpet_base =
-		(void __iomem*)ioremap_nocache(hpet_address, HPET_MMAP_SIZE);
+	hpet_base = ioremap_nocache(hpet_address, HPET_MMAP_SIZE);
 	hpet_ptr = hpet_base + HPET_COUNTER;
 
 	/* calculate the frequency: */
Signature · 1 line
1.5.0-rc2.GIT