summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gonzalez <alex.gonzalez@digi.com>2012-02-24 11:26:16 +0100
committerAlex Gonzalez <alex.gonzalez@digi.com>2012-02-27 10:13:24 +0100
commit131794afeb361347b97eaceb1dfc92a8986ec139 (patch)
tree9b75e0c415eb4c6d35c18e853782aac81f59630e
parent2b6afec712d9f1ac2705f7083ad090ff9129c9f6 (diff)
ccxmx53: Do not register DVFS core device if PMIC is not available.del-5.8.1.12.6.35-digi-201202241126
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
-rw-r--r--arch/arm/mach-mx5/mx53_ccwmx53js.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/mx53_ccwmx53js.c b/arch/arm/mach-mx5/mx53_ccwmx53js.c
index f9e391d9f9aa..d02b0f30fa51 100644
--- a/arch/arm/mach-mx5/mx53_ccwmx53js.c
+++ b/arch/arm/mach-mx5/mx53_ccwmx53js.c
@@ -317,7 +317,9 @@ static void __init mxc_board_init(void)
mxc_register_device(&gpu_device, &gpu_data);
mxc_register_device(&mxcscc_device, NULL);
mxc_register_device(&pm_device, &ccwmx53_pm_data);
+#if defined(CONFIG_PMIC_DA9052)
mxc_register_device(&mxc_dvfs_core_device, &dvfs_core_data);
+#endif
mxc_register_device(&busfreq_device, &bus_freq_data);
mxc_register_device(&mxc_iim_device, &iim_data);
mxc_register_device(&mxc_v4l2_device, NULL);