diff options
Diffstat (limited to 'arch/sh/include/asm/mmu.h')
-rw-r--r-- | arch/sh/include/asm/mmu.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/sh/include/asm/mmu.h b/arch/sh/include/asm/mmu.h index e42c4e2a41df..15a05b615ba7 100644 --- a/arch/sh/include/asm/mmu.h +++ b/arch/sh/include/asm/mmu.h | |||
@@ -58,7 +58,7 @@ typedef struct { | |||
58 | long pmb_remap(unsigned long virt, unsigned long phys, | 58 | long pmb_remap(unsigned long virt, unsigned long phys, |
59 | unsigned long size, pgprot_t prot); | 59 | unsigned long size, pgprot_t prot); |
60 | void pmb_unmap(unsigned long addr); | 60 | void pmb_unmap(unsigned long addr); |
61 | int pmb_init(void); | 61 | void pmb_init(void); |
62 | bool __in_29bit_mode(void); | 62 | bool __in_29bit_mode(void); |
63 | #else | 63 | #else |
64 | static inline long pmb_remap(unsigned long virt, unsigned long phys, | 64 | static inline long pmb_remap(unsigned long virt, unsigned long phys, |
@@ -67,14 +67,8 @@ static inline long pmb_remap(unsigned long virt, unsigned long phys, | |||
67 | return -EINVAL; | 67 | return -EINVAL; |
68 | } | 68 | } |
69 | 69 | ||
70 | static inline void pmb_unmap(unsigned long addr) | 70 | #define pmb_unmap(addr) do { } while (0) |
71 | { | 71 | #define pmb_init(addr) do { } while (0) |
72 | } | ||
73 | |||
74 | static inline int pmb_init(void) | ||
75 | { | ||
76 | return -ENODEV; | ||
77 | } | ||
78 | 72 | ||
79 | #ifdef CONFIG_29BIT | 73 | #ifdef CONFIG_29BIT |
80 | #define __in_29bit_mode() (1) | 74 | #define __in_29bit_mode() (1) |