diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-02-01 13:38:49 +0300 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-02-01 13:38:49 +0300 |
commit | 17292ecc07857bb16737c340dda289ab9d219e05 (patch) | |
tree | 214a208af0e4826b835cd4ee770c7f1573c86b04 /arch/sh | |
parent | cd7bb53ff88a5acef942a87c1d04e6211b6470dc (diff) | |
parent | 0ce08870b8a4895044b6cf2bbdc774a6faaa3656 (diff) | |
download | linux-17292ecc07857bb16737c340dda289ab9d219e05.tar.xz |
Merge branch 'sh/urgent' into sh-latest
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh7750.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c index 672944f5b19c..e53b4b38bd11 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c @@ -14,7 +14,7 @@ #include <linux/io.h> #include <linux/sh_timer.h> #include <linux/serial_sci.h> -#include <asm/machtypes.h> +#include <generated/machtypes.h> static struct resource rtc_resources[] = { [0] = { @@ -255,12 +255,17 @@ static struct platform_device *sh7750_early_devices[] __initdata = { void __init plat_early_device_setup(void) { + struct platform_device *dev[1]; + if (mach_is_rts7751r2d()) { scif_platform_data.scscr |= SCSCR_CKE1; - early_platform_add_devices(&scif_device, 1); + dev[0] = &scif_device; + early_platform_add_devices(dev, 1); } else { - early_platform_add_devices(&sci_device, 1); - early_platform_add_devices(&scif_device, 1); + dev[0] = &sci_device; + early_platform_add_devices(dev, 1); + dev[0] = &scif_device; + early_platform_add_devices(dev, 1); } early_platform_add_devices(sh7750_early_devices, |