diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/s3c2410-dma.c')
-rw-r--r-- | arch/arm/mach-s3c2410/s3c2410-dma.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2410-dma.c b/arch/arm/mach-s3c2410/s3c2410-dma.c index 51e5098b32e8..e67ba3911f11 100644 --- a/arch/arm/mach-s3c2410/s3c2410-dma.c +++ b/arch/arm/mach-s3c2410/s3c2410-dma.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2410/s3c2410-dma.c | 1 | /* linux/arch/arm/mach-s3c2410/s3c2410-dma.c |
2 | * | 2 | * |
3 | * (c) 2006 Simtec Electronics | 3 | * Copyright (c) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * S3C2410 DMA selection | 6 | * S3C2410 DMA selection |
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/sysdev.h> | 17 | #include <linux/sysdev.h> |
18 | #include <linux/serial_core.h> | ||
18 | 19 | ||
19 | #include <asm/dma.h> | 20 | #include <asm/dma.h> |
20 | #include <asm/arch/dma.h> | 21 | #include <asm/arch/dma.h> |
@@ -131,6 +132,7 @@ static int s3c2410_dma_add(struct sys_device *sysdev) | |||
131 | return s3c24xx_dma_init_map(&s3c2410_dma_sel); | 132 | return s3c24xx_dma_init_map(&s3c2410_dma_sel); |
132 | } | 133 | } |
133 | 134 | ||
135 | #if defined(CONFIG_CPU_S3C2410) | ||
134 | static struct sysdev_driver s3c2410_dma_driver = { | 136 | static struct sysdev_driver s3c2410_dma_driver = { |
135 | .add = s3c2410_dma_add, | 137 | .add = s3c2410_dma_add, |
136 | }; | 138 | }; |
@@ -141,9 +143,10 @@ static int __init s3c2410_dma_init(void) | |||
141 | } | 143 | } |
142 | 144 | ||
143 | arch_initcall(s3c2410_dma_init); | 145 | arch_initcall(s3c2410_dma_init); |
146 | #endif | ||
144 | 147 | ||
148 | #if defined(CONFIG_CPU_S3C2442) | ||
145 | /* S3C2442 DMA contains the same selection table as the S3C2410 */ | 149 | /* S3C2442 DMA contains the same selection table as the S3C2410 */ |
146 | |||
147 | static struct sysdev_driver s3c2442_dma_driver = { | 150 | static struct sysdev_driver s3c2442_dma_driver = { |
148 | .add = s3c2410_dma_add, | 151 | .add = s3c2410_dma_add, |
149 | }; | 152 | }; |
@@ -154,5 +157,5 @@ static int __init s3c2442_dma_init(void) | |||
154 | } | 157 | } |
155 | 158 | ||
156 | arch_initcall(s3c2442_dma_init); | 159 | arch_initcall(s3c2442_dma_init); |
157 | 160 | #endif | |
158 | 161 | ||