summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx27-dt.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-04-22 13:28:41 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-25 16:18:23 +0200
commit7ead83f6df2b105e4973140fe323a93ccfd4f8f9 (patch)
tree0faafc8bd758ff32f58d35785ea4977ca2dc17a5 /arch/arm/mach-imx/imx27-dt.c
parentcpufreq: berlin: Use generic platdev driver (diff)
downloadlinux-7ead83f6df2b105e4973140fe323a93ccfd4f8f9.tar.xz
linux-7ead83f6df2b105e4973140fe323a93ccfd4f8f9.zip
cpufreq: imx: Use generic platdev driver
The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform device now, reuse that and remove similar code from platform code. Note that the complete routine imx27_dt_init() is removed as of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); has same effect as a NULL .init_machine machine callback pointer. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-imx/imx27-dt.c')
-rw-r--r--arch/arm/mach-imx/imx27-dt.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c
index bd42d1bd10af..530a728c2acc 100644
--- a/arch/arm/mach-imx/imx27-dt.c
+++ b/arch/arm/mach-imx/imx27-dt.c
@@ -18,15 +18,6 @@
#include "common.h"
#include "mx27.h"
-static void __init imx27_dt_init(void)
-{
- struct platform_device_info devinfo = { .name = "cpufreq-dt", };
-
- of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-
- platform_device_register_full(&devinfo);
-}
-
static const char * const imx27_dt_board_compat[] __initconst = {
"fsl,imx27",
NULL
@@ -36,6 +27,5 @@ DT_MACHINE_START(IMX27_DT, "Freescale i.MX27 (Device Tree Support)")
.map_io = mx27_map_io,
.init_early = imx27_init_early,
.init_irq = mx27_init_irq,
- .init_machine = imx27_dt_init,
.dt_compat = imx27_dt_board_compat,
MACHINE_END