diff options
Diffstat (limited to 'arch/sh/kernel/cf-enabler.c')
-rw-r--r-- | arch/sh/kernel/cf-enabler.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/sh/kernel/cf-enabler.c b/arch/sh/kernel/cf-enabler.c index f1f9ab87f0b0..3e5fa1e24df0 100644 --- a/arch/sh/kernel/cf-enabler.c +++ b/arch/sh/kernel/cf-enabler.c | |||
@@ -10,7 +10,8 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | 13 | #include <linux/mm.h> | |
14 | #include <linux/vmalloc.h> | ||
14 | #include <asm/io.h> | 15 | #include <asm/io.h> |
15 | #include <asm/irq.h> | 16 | #include <asm/irq.h> |
16 | 17 | ||
@@ -32,8 +33,6 @@ | |||
32 | /* SH4 can't access PCMCIA interface through P2 area. | 33 | /* SH4 can't access PCMCIA interface through P2 area. |
33 | * we must remap it with appropreate attribute bit of the page set. | 34 | * we must remap it with appropreate attribute bit of the page set. |
34 | * this part is based on Greg Banks' hd64465_ss.c implementation - Masahiro Abe */ | 35 | * this part is based on Greg Banks' hd64465_ss.c implementation - Masahiro Abe */ |
35 | #include <linux/mm.h> | ||
36 | #include <linux/vmalloc.h> | ||
37 | 36 | ||
38 | #if defined(CONFIG_CF_AREA6) | 37 | #if defined(CONFIG_CF_AREA6) |
39 | #define slot_no 0 | 38 | #define slot_no 0 |
@@ -41,9 +40,6 @@ | |||
41 | #define slot_no 1 | 40 | #define slot_no 1 |
42 | #endif | 41 | #endif |
43 | 42 | ||
44 | /* defined in mm/ioremap.c */ | ||
45 | extern void * p3_ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags); | ||
46 | |||
47 | /* use this pointer to access to directly connected compact flash io area*/ | 43 | /* use this pointer to access to directly connected compact flash io area*/ |
48 | void *cf_io_base; | 44 | void *cf_io_base; |
49 | 45 | ||
@@ -62,7 +58,7 @@ static int __init allocate_cf_area(void) | |||
62 | return -ENOMEM; | 58 | return -ENOMEM; |
63 | } | 59 | } |
64 | /* printk("p3_ioremap(paddr=0x%08lx, psize=0x%08lx, prot=0x%08lx)=0x%08lx\n", | 60 | /* printk("p3_ioremap(paddr=0x%08lx, psize=0x%08lx, prot=0x%08lx)=0x%08lx\n", |
65 | paddrbase, psize, prot.pgprot, cf_io_base);*/ | 61 | paddrbase, psize, prot.pgprot, cf_io_base);*/ |
66 | 62 | ||
67 | /* XXX : do we need attribute and common-memory area also? */ | 63 | /* XXX : do we need attribute and common-memory area also? */ |
68 | 64 | ||
@@ -87,7 +83,7 @@ static int __init cf_init_default(void) | |||
87 | } | 83 | } |
88 | 84 | ||
89 | #if defined(CONFIG_SH_SOLUTION_ENGINE) | 85 | #if defined(CONFIG_SH_SOLUTION_ENGINE) |
90 | #include <asm/se/se.h> | 86 | #include <asm/se.h> |
91 | 87 | ||
92 | /* | 88 | /* |
93 | * SolutionEngine | 89 | * SolutionEngine |