summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-08-26 23:54:05 +0200
committerBen Dooks <ben-linux@fluff.org>2008-08-26 23:56:21 +0200
commit103895925fbee5bd612ce2217f619df717aa1bda (patch)
tree2a2c61783e7ad0943d3dbde288b7d2bf4c75c69c /arch
parent[ARM] S3C24XX: Fix spare errors in pwm-clock driver (diff)
downloadlinux-103895925fbee5bd612ce2217f619df717aa1bda.tar.xz
linux-103895925fbee5bd612ce2217f619df717aa1bda.zip
[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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-s3c24xx/pwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/pwm.c b/arch/arm/plat-s3c24xx/pwm.c
index 18c4bdc49a05..3b6861936ddf 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;