diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-18 23:49:19 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-18 23:49:19 -0500 |
commit | acf2c9685fb8295cb62a623d7358a1cfde8b07ea (patch) | |
tree | 417313447aa8da946c74a5afcf1085c7b1744fb6 /arch/sh/include/asm | |
parent | d57d64080ddc0ff13fcffc898b6251074a482ba1 (diff) |
sh: Kill off duplicate address alignment in ioremap_fixed().
This is already taken care of in the top-level ioremap, and now that
no one should be calling ioremap_fixed() directly we can simply throw the
mapping displacement in as an additional argument.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/io.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 13696dfccc16..70269813cef1 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -239,12 +239,14 @@ void __iomem *__ioremap_caller(unsigned long offset, unsigned long size, | |||
239 | void __iounmap(void __iomem *addr); | 239 | void __iounmap(void __iomem *addr); |
240 | 240 | ||
241 | #ifdef CONFIG_IOREMAP_FIXED | 241 | #ifdef CONFIG_IOREMAP_FIXED |
242 | extern void __iomem *ioremap_fixed(resource_size_t, unsigned long, pgprot_t); | 242 | extern void __iomem *ioremap_fixed(resource_size_t, unsigned long, |
243 | unsigned long, pgprot_t); | ||
243 | extern int iounmap_fixed(void __iomem *); | 244 | extern int iounmap_fixed(void __iomem *); |
244 | extern void ioremap_fixed_init(void); | 245 | extern void ioremap_fixed_init(void); |
245 | #else | 246 | #else |
246 | static inline void __iomem * | 247 | static inline void __iomem * |
247 | ioremap_fixed(resource_size t phys_addr, unsigned long size, pgprot_t prot) | 248 | ioremap_fixed(resource_size t phys_addr, unsigned long offset, |
249 | unsigned long size, pgprot_t prot) | ||
248 | { | 250 | { |
249 | BUG(); | 251 | BUG(); |
250 | } | 252 | } |