diff options
Diffstat (limited to 'arch/arm/mach-s5p64x0/dma.c')
-rw-r--r-- | arch/arm/mach-s5p64x0/dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-s5p64x0/dma.c b/arch/arm/mach-s5p64x0/dma.c index aebf3fcb1eb..442dd4ad12d 100644 --- a/arch/arm/mach-s5p64x0/dma.c +++ b/arch/arm/mach-s5p64x0/dma.c @@ -32,6 +32,7 @@ #include <mach/regs-clock.h> #include <mach/dma.h> +#include <plat/cpu.h> #include <plat/devs.h> #include <plat/irqs.h> @@ -226,9 +227,7 @@ struct amba_device s5p64x0_device_pdma = { static int __init s5p64x0_dma_init(void) { - unsigned int id = __raw_readl(S5P64X0_SYS_ID) & 0xFF000; - - if (id == 0x50000) + if (soc_is_s5p6450()) s5p64x0_device_pdma.dev.platform_data = &s5p6450_pdma_pdata; else s5p64x0_device_pdma.dev.platform_data = &s5p6440_pdma_pdata; |