From: Viresh Kumar <viresh.kumar@linaro.org>
To: Geliang Tang <geliangtang@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpufreq: dbx500: use builtin_platform_driver
Date: Thu, 24 Nov 2016 09:19:39 +0530 [thread overview]
Message-ID: <20161124034939.GA9376@vireshk-i7> (raw)
In-Reply-To: <3e21f3c9748b18f97d3b7e2e534b31a64601177c.1479912098.git.geliangtang@gmail.com>
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
prev parent reply other threads:[~2016-11-24 3:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 14:42 [PATCH] cpufreq: dbx500: use builtin_platform_driver Geliang Tang
2016-11-24 3:49 ` Viresh Kumar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161124034939.GA9376@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=geliangtang@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).