Re: [PATCH] cpufreq: dbx500: use builtin_platform_driver

From: Viresh Kumar
Date: Wed Nov 23 2016 - 22:49:47 EST


On 23-11-16, 22:42, Geliang Tang wrote:
> Use builtin_platform_driver() helper to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
> ---
> 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@xxxxxxxxxx>
--
viresh