From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linaro-kernel@lists.linaro.org, patches@linaro.org,
linux-pm@vger.kernel.org, lethal@linux-sh.org,
kgene.kim@samsung.com, ben-linux@fluff.org,
horms+renesas@verge.net.au, linux-samsung-soc@vger.kernel.org,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/2] ARM: s3c64xx: cpuidle: use init/exit common routine
Date: Thu, 25 Apr 2013 11:35:28 +0200 [thread overview]
Message-ID: <5178F8E0.6010606@linaro.org> (raw)
In-Reply-To: <1366728077-18988-1-git-send-email-daniel.lezcano@linaro.org>
On 04/23/2013 04:41 PM, Daniel Lezcano wrote:
> Remove the duplicated code and use the cpuidle common code for initialization.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
Hi Kim and Ben,
It is the last patch in the series which was not acked-by.
Rafael is willing to take it in its tree if you ack it.
Are you ok if this patch ?
Thanks
-- Daniel
> arch/arm/mach-s3c64xx/cpuidle.c | 14 +-------------
> 1 file changed, 1 insertion(+), 13 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/cpuidle.c b/arch/arm/mach-s3c64xx/cpuidle.c
> index 852ff16..3c8ab07 100644
> --- a/arch/arm/mach-s3c64xx/cpuidle.c
> +++ b/arch/arm/mach-s3c64xx/cpuidle.c
> @@ -40,8 +40,6 @@ static int s3c64xx_enter_idle(struct cpuidle_device *dev,
> return index;
> }
>
> -static DEFINE_PER_CPU(struct cpuidle_device, s3c64xx_cpuidle_device);
> -
> static struct cpuidle_driver s3c64xx_cpuidle_driver = {
> .name = "s3c64xx_cpuidle",
> .owner = THIS_MODULE,
> @@ -60,16 +58,6 @@ static struct cpuidle_driver s3c64xx_cpuidle_driver = {
>
> static int __init s3c64xx_init_cpuidle(void)
> {
> - int ret;
> -
> - cpuidle_register_driver(&s3c64xx_cpuidle_driver);
> -
> - ret = cpuidle_register_device(&s3c64xx_cpuidle_device);
> - if (ret) {
> - pr_err("Failed to register cpuidle device: %d\n", ret);
> - return ret;
> - }
> -
> - return 0;
> + return cpuidle_register(&s3c64xx_cpuidle_driver, NULL);
> }
> device_initcall(s3c64xx_init_cpuidle);
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
WARNING: multiple messages have this Message-ID (diff)
From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: s3c64xx: cpuidle: use init/exit common routine
Date: Thu, 25 Apr 2013 11:35:28 +0200 [thread overview]
Message-ID: <5178F8E0.6010606@linaro.org> (raw)
In-Reply-To: <1366728077-18988-1-git-send-email-daniel.lezcano@linaro.org>
On 04/23/2013 04:41 PM, Daniel Lezcano wrote:
> Remove the duplicated code and use the cpuidle common code for initialization.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
Hi Kim and Ben,
It is the last patch in the series which was not acked-by.
Rafael is willing to take it in its tree if you ack it.
Are you ok if this patch ?
Thanks
-- Daniel
> arch/arm/mach-s3c64xx/cpuidle.c | 14 +-------------
> 1 file changed, 1 insertion(+), 13 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/cpuidle.c b/arch/arm/mach-s3c64xx/cpuidle.c
> index 852ff16..3c8ab07 100644
> --- a/arch/arm/mach-s3c64xx/cpuidle.c
> +++ b/arch/arm/mach-s3c64xx/cpuidle.c
> @@ -40,8 +40,6 @@ static int s3c64xx_enter_idle(struct cpuidle_device *dev,
> return index;
> }
>
> -static DEFINE_PER_CPU(struct cpuidle_device, s3c64xx_cpuidle_device);
> -
> static struct cpuidle_driver s3c64xx_cpuidle_driver = {
> .name = "s3c64xx_cpuidle",
> .owner = THIS_MODULE,
> @@ -60,16 +58,6 @@ static struct cpuidle_driver s3c64xx_cpuidle_driver = {
>
> static int __init s3c64xx_init_cpuidle(void)
> {
> - int ret;
> -
> - cpuidle_register_driver(&s3c64xx_cpuidle_driver);
> -
> - ret = cpuidle_register_device(&s3c64xx_cpuidle_device);
> - if (ret) {
> - pr_err("Failed to register cpuidle device: %d\n", ret);
> - return ret;
> - }
> -
> - return 0;
> + return cpuidle_register(&s3c64xx_cpuidle_driver, NULL);
> }
> device_initcall(s3c64xx_init_cpuidle);
--
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
next prev parent reply other threads:[~2013-04-25 9:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-23 14:41 [PATCH 1/2] ARM: s3c64xx: cpuidle: use init/exit common routine Daniel Lezcano
2013-04-23 14:41 ` [PATCH 2/2] SH: " Daniel Lezcano
2013-04-24 6:02 ` Simon Horman
2013-04-24 12:08 ` Rafael J. Wysocki
2013-04-25 9:35 ` Daniel Lezcano [this message]
2013-04-25 9:35 ` [PATCH 1/2] ARM: s3c64xx: " Daniel Lezcano
2013-04-25 15:31 ` Kukjin Kim
2013-04-25 15:31 ` Kukjin Kim
2013-04-26 12:03 ` Rafael J. Wysocki
2013-04-26 12:03 ` Rafael J. Wysocki
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=5178F8E0.6010606@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=ben-linux@fluff.org \
--cc=horms+renesas@verge.net.au \
--cc=kgene.kim@samsung.com \
--cc=lethal@linux-sh.org \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=patches@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.