[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: [ARM] S3C24XX: Fix sparse warnings in pwm.c
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2008-08-28 20:02:31
Message-ID: 200808282002.m7SK2VEi006646 () hera ! kernel ! org
[Download RAW message or body]
Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=103895925fbee5bd612ce2217f619df717aa1bda
Commit: 103895925fbee5bd612ce2217f619df717aa1bda
Parent: 1442e662d8e159a3b67280d284c7b91f9fb31ba4
Author: Ben Dooks <ben-linux@fluff.org>
AuthorDate: Tue Aug 26 22:54:05 2008 +0100
Committer: Ben Dooks <ben-linux@fluff.org>
CommitDate: Tue Aug 26 22:56:21 2008 +0100
[ARM] S3C24XX: Fix sparse warnings in pwm.c
Fix the following sparse warnings in arch/arm/plat-s3c24xx/pwm.c:
warning: symbol 's3c_device_timer' was not declared. Should it be static?
warning: symbol 'pwm_calc_tin' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
arch/arm/plat-s3c24xx/pwm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-s3c24xx/pwm.c b/arch/arm/plat-s3c24xx/pwm.c
index 18c4bdc..3b68619 100644
--- a/arch/arm/plat-s3c24xx/pwm.c
+++ b/arch/arm/plat-s3c24xx/pwm.c
@@ -19,6 +19,7 @@
#include <linux/io.h>
#include <linux/pwm.h>
+#include <asm/plat-s3c24xx/devs.h>
#include <asm/plat-s3c/regs-timer.h>
struct pwm_device {
@@ -168,7 +169,7 @@ void pwm_disable(struct pwm_device *pwm)
EXPORT_SYMBOL(pwm_disable);
-unsigned long pwm_calc_tin(struct pwm_device *pwm, unsigned long freq)
+static unsigned long pwm_calc_tin(struct pwm_device *pwm, unsigned long freq)
{
unsigned long tin_parent_rate;
unsigned int div;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic