* [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver [not found] ` <cover.1461324267.git.viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2016-04-22 11:28 ` Viresh Kumar 2016-04-22 13:58 ` Heiko Stübner 0 siblings, 1 reply; 2+ messages in thread From: Viresh Kumar @ 2016-04-22 11:28 UTC (permalink / raw) To: Rafael Wysocki, Heiko Stuebner, Viresh Kumar Cc: linaro-kernel-cunTk1MwBs8s++Sfvej+rw, Arnd Bergmann, linux-pm-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Finley Xiao, geert-Td1EMuHUCqxL1ZNQvxDV9g, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r From: Finley Xiao <finley.xiao-TNX95d0MmH7DzftRWevZcw@public.gmane.org> This patch add rockchip's compatible string to the compat list and remove similar code from platform code for supporting generic platdev driver. Signed-off-by: Finley Xiao <finley.xiao-TNX95d0MmH7DzftRWevZcw@public.gmane.org> Acked-by: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Acked-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> Signed-off-by: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> --- arch/arm/mach-rockchip/rockchip.c | 1 - drivers/cpufreq/cpufreq-dt-platdev.c | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c index 3f07cc5dfe5f..beb71da5d9c8 100644 --- a/arch/arm/mach-rockchip/rockchip.c +++ b/arch/arm/mach-rockchip/rockchip.c @@ -74,7 +74,6 @@ static void __init rockchip_dt_init(void) { rockchip_suspend_init(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - platform_device_register_simple("cpufreq-dt", 0, NULL, 0); } static const char * const rockchip_board_dt_compat[] = { diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 4e525f6ec59f..75fa921d8540 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -29,6 +29,17 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "samsung,exynos5800", }, #endif + { .compatible = "rockchip,rk2928", }, + { .compatible = "rockchip,rk3036", }, + { .compatible = "rockchip,rk3066a", }, + { .compatible = "rockchip,rk3066b", }, + { .compatible = "rockchip,rk3188", }, + { .compatible = "rockchip,rk3228", }, + { .compatible = "rockchip,rk3288", }, + { .compatible = "rockchip,rk3366", }, + { .compatible = "rockchip,rk3368", }, + { .compatible = "rockchip,rk3399", }, + { .compatible = "ti,omap2", }, { .compatible = "ti,omap3", }, { .compatible = "ti,omap4", }, -- 2.7.1.410.g6faf27b ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver 2016-04-22 11:28 ` [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver Viresh Kumar @ 2016-04-22 13:58 ` Heiko Stübner 0 siblings, 0 replies; 2+ messages in thread From: Heiko Stübner @ 2016-04-22 13:58 UTC (permalink / raw) To: Viresh Kumar Cc: Rafael Wysocki, linaro-kernel, linux-pm, geert, Finley Xiao, Arnd Bergmann, linux-arm-kernel, linux-rockchip, linux-kernel Am Freitag, 22. April 2016, 16:58:43 schrieb Viresh Kumar: > From: Finley Xiao <finley.xiao@rock-chips.com> > > This patch add rockchip's compatible string to the compat list and > remove similar code from platform code for supporting generic platdev > driver. > > Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> > Acked-by: Viresh Kumar <viresh.kumar@linaro.org> > Acked-by: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> very cool to have that cpufreq stuff move somewhere else Reviewed-by: Heiko Stuebner <heiko@sntech.de> > --- > arch/arm/mach-rockchip/rockchip.c | 1 - > drivers/cpufreq/cpufreq-dt-platdev.c | 11 +++++++++++ > 2 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-rockchip/rockchip.c > b/arch/arm/mach-rockchip/rockchip.c index 3f07cc5dfe5f..beb71da5d9c8 100644 > --- a/arch/arm/mach-rockchip/rockchip.c > +++ b/arch/arm/mach-rockchip/rockchip.c > @@ -74,7 +74,6 @@ static void __init rockchip_dt_init(void) > { > rockchip_suspend_init(); > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); > - platform_device_register_simple("cpufreq-dt", 0, NULL, 0); > } > > static const char * const rockchip_board_dt_compat[] = { > diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c > b/drivers/cpufreq/cpufreq-dt-platdev.c index 4e525f6ec59f..75fa921d8540 > 100644 > --- a/drivers/cpufreq/cpufreq-dt-platdev.c > +++ b/drivers/cpufreq/cpufreq-dt-platdev.c > @@ -29,6 +29,17 @@ static const struct of_device_id machines[] __initconst = > { { .compatible = "samsung,exynos5800", }, > #endif > > + { .compatible = "rockchip,rk2928", }, > + { .compatible = "rockchip,rk3036", }, > + { .compatible = "rockchip,rk3066a", }, > + { .compatible = "rockchip,rk3066b", }, > + { .compatible = "rockchip,rk3188", }, > + { .compatible = "rockchip,rk3228", }, > + { .compatible = "rockchip,rk3288", }, > + { .compatible = "rockchip,rk3366", }, > + { .compatible = "rockchip,rk3368", }, > + { .compatible = "rockchip,rk3399", }, > + > { .compatible = "ti,omap2", }, > { .compatible = "ti,omap3", }, > { .compatible = "ti,omap4", }, ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-22 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1461324267.git.viresh.kumar@linaro.org>
[not found] ` <cover.1461324267.git.viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-04-22 11:28 ` [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver Viresh Kumar
2016-04-22 13:58 ` Heiko Stübner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox