Skip to content

Commit

Permalink
sh: Fixup the IOREMAP_FIXED=n build.
Browse files Browse the repository at this point in the history
Presently the fixed ioremap API is only defined when CONFIG_IOREMAP_FIXED
is set. As we want to call in to it unconditionally, provide a stubbed
out interface.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 18, 2010
1 parent d9b9487 commit edf711b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/sh/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ void __iounmap(void __iomem *addr);
extern void __iomem *ioremap_fixed(resource_size_t, unsigned long, pgprot_t);
extern void iounmap_fixed(void __iomem *);
extern void ioremap_fixed_init(void);
#else
static inline void __iomem *
ioremap_fixed(resource_size t phys_addr, unsigned long size, pgprot_t prot)
{
BUG();
}

static inline void ioremap_fixed_init(void) { }
static inline void iounmap_fixed(void __iomem *addr) { }
#endif

static inline void __iomem *
Expand Down

0 comments on commit edf711b

Please sign in to comment.