]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
msm: 8960: Split out common initialization code
authorStepan Moskovchenko <stepanm@codeaurora.org>
Fri, 11 Mar 2011 21:22:02 +0000 (13:22 -0800)
committerDavid Brown <davidb@codeaurora.org>
Fri, 1 Apr 2011 23:38:44 +0000 (16:38 -0700)
Move common initialization code into a separate function in
preparation for adding devices that are common to multiple
8960 targets.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/board-msm8960.c

index 2bd4b8a25493bb866f33ca8a32b119baf157ed65..332d587e56a927652213c4f0d6c385230f4d40ca 100644 (file)
@@ -70,13 +70,19 @@ static struct platform_device *rumi3_devices[] __initdata = {
        &msm8960_device_uart_gsbi5,
 };
 
+static void __init msm8960_init(void)
+{
+}
+
 static void __init msm8960_sim_init(void)
 {
+       msm8960_init();
        platform_add_devices(sim_devices, ARRAY_SIZE(sim_devices));
 }
 
 static void __init msm8960_rumi3_init(void)
 {
+       msm8960_init();
        platform_add_devices(rumi3_devices, ARRAY_SIZE(rumi3_devices));
 }