From: tomasz.figa@gmail.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] ARM: Samsung: pwm: Exclude timer 3 on S3C64xx if generic time is enabled.
Date: Sun, 28 Aug 2011 02:46:18 +0200 [thread overview]
Message-ID: <mailman.112.1314794131.20020.linux-arm-kernel@lists.infradead.org> (raw)
This patch excludes PWM timer 3 from timers supported with the PWM driver
on S3C64xx when generic time is enabled.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
---
arch/arm/plat-samsung/pwm.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-samsung/pwm.c b/arch/arm/plat-samsung/pwm.c
index 27b5353..8f0fad1 100644
--- a/arch/arm/plat-samsung/pwm.c
+++ b/arch/arm/plat-samsung/pwm.c
@@ -273,6 +273,13 @@ static int s3c_pwm_probe(struct platform_device *pdev)
unsigned int id = pdev->id;
int ret;
+#ifdef CONFIG_S3C64XX_GENERIC_CLOCKEVENTS
+ if (id == 3 &&
+ platform_get_device_id(pdev)->driver_data == TYPE_S3C64XX) {
+ dev_err(dev, "TIMER3 is currently not supported\n");
+ return -ENXIO;
+ }
+#endif
if (id == 4) {
dev_err(dev, "TIMER4 is currently not supported\n");
return -ENXIO;
--
1.7.6.1
next reply other threads:[~2011-08-28 0:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 0:46 Tomasz Figa [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-31 12:33 [PATCH 0/5] Add high resolution generic time support for S3C64xx Tomasz Figa
2011-08-31 12:35 ` [PATCH 3/5] ARM: Samsung: pwm: Exclude timer 3 on S3C64xx if generic time is enabled Tomasz Figa
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=mailman.112.1314794131.20020.linux-arm-kernel@lists.infradead.org \
--to=tomasz.figa@gmail.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