From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: exynos4: remove compiler warning: 'exynos4_pwm4_resume'
Date: Fri, 03 Jun 2011 16:20:05 -0700 [thread overview]
Message-ID: <4DE96C25.2040903@samsung.com> (raw)
In-Reply-To: <20110602093052.GA16756@july>
On 06/02/11 02:30, Kyungmin Park wrote:
> From: Kyungmin Park<kyungmin.park@samsung.com>
>
> Remove compiler warning when no CONFIG_PM
>
> arch/arm/mach-exynos4/time.c:209: warning: 'exynos4_pwm4_resume' defined but not used
>
> Signed-off-by: Kyungmin Park<kyungmin.park@samsung.com>
> ---
> diff --git a/arch/arm/mach-exynos4/time.c b/arch/arm/mach-exynos4/time.c
> index 86b9fa0..ebb8f38 100644
> --- a/arch/arm/mach-exynos4/time.c
> +++ b/arch/arm/mach-exynos4/time.c
> @@ -206,6 +206,7 @@ static cycle_t exynos4_pwm4_read(struct clocksource *cs)
> return (cycle_t) ~__raw_readl(S3C_TIMERREG(0x40));
> }
>
> +#ifdef CONFIG_PM
> static void exynos4_pwm4_resume(struct clocksource *cs)
> {
> unsigned long pclk;
> @@ -218,6 +219,7 @@ static void exynos4_pwm4_resume(struct clocksource *cs)
> exynos4_pwm_init(4, ~0);
> exynos4_pwm_start(4, 1);
> }
> +#endif
>
> struct clocksource pwm_clocksource = {
> .name = "pwm_timer4",
>
OK, will apply.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
prev parent reply other threads:[~2011-06-03 23:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 9:30 [PATCH] ARM: exynos4: remove compiler warning: 'exynos4_pwm4_resume' Kyungmin Park
2011-06-03 23:20 ` Kukjin Kim [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=4DE96C25.2040903@samsung.com \
--to=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox