linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpufreq: dbx500: use builtin_platform_driver
@ 2016-11-23 14:42 Geliang Tang
  2016-11-24  3:49 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2016-11-23 14:42 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar; +Cc: Geliang Tang, linux-pm, linux-kernel

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/cpufreq/dbx500-cpufreq.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c
index 5c3ec1d..d257a75 100644
--- a/drivers/cpufreq/dbx500-cpufreq.c
+++ b/drivers/cpufreq/dbx500-cpufreq.c
@@ -73,11 +73,7 @@ static struct platform_driver dbx500_cpufreq_plat_driver = {
 	.probe = dbx500_cpufreq_probe,
 };
 
-static int __init dbx500_cpufreq_register(void)
-{
-	return platform_driver_register(&dbx500_cpufreq_plat_driver);
-}
-device_initcall(dbx500_cpufreq_register);
+builtin_platform_driver(dbx500_cpufreq_plat_driver);
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("cpufreq driver for DBX500");
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: dbx500: use builtin_platform_driver
  2016-11-23 14:42 [PATCH] cpufreq: dbx500: use builtin_platform_driver Geliang Tang
@ 2016-11-24  3:49 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2016-11-24  3:49 UTC (permalink / raw)
  To: Geliang Tang; +Cc: Rafael J. Wysocki, linux-pm, linux-kernel

On 23-11-16, 22:42, Geliang Tang wrote:
> Use builtin_platform_driver() helper to simplify the code.
> 
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
>  drivers/cpufreq/dbx500-cpufreq.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c
> index 5c3ec1d..d257a75 100644
> --- a/drivers/cpufreq/dbx500-cpufreq.c
> +++ b/drivers/cpufreq/dbx500-cpufreq.c
> @@ -73,11 +73,7 @@ static struct platform_driver dbx500_cpufreq_plat_driver = {
>  	.probe = dbx500_cpufreq_probe,
>  };
>  
> -static int __init dbx500_cpufreq_register(void)
> -{
> -	return platform_driver_register(&dbx500_cpufreq_plat_driver);
> -}
> -device_initcall(dbx500_cpufreq_register);
> +builtin_platform_driver(dbx500_cpufreq_plat_driver);
>  
>  MODULE_LICENSE("GPL v2");
>  MODULE_DESCRIPTION("cpufreq driver for DBX500");

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-24  3:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 14:42 [PATCH] cpufreq: dbx500: use builtin_platform_driver Geliang Tang
2016-11-24  3:49 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).