cpufreq: imx: Use generic platdev driver
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 22 Apr 2016 11:28:41 +0000 (16:58 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Apr 2016 14:18:23 +0000 (16:18 +0200)
commit7ead83f6df2b105e4973140fe323a93ccfd4f8f9
tree0faafc8bd758ff32f58d35785ea4977ca2dc17a5
parenta59511d1daa6406eede58a79f99250ffcd9a3566
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>
arch/arm/mach-imx/imx27-dt.c
arch/arm/mach-imx/mach-imx51.c
arch/arm/mach-imx/mach-imx53.c
arch/arm/mach-imx/mach-imx7d.c
drivers/cpufreq/cpufreq-dt-platdev.c