mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
[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>
This commit is contained in:
parent
1442e662d8
commit
103895925f
@ -19,6 +19,7 @@
|
|||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/pwm.h>
|
#include <linux/pwm.h>
|
||||||
|
|
||||||
|
#include <asm/plat-s3c24xx/devs.h>
|
||||||
#include <asm/plat-s3c/regs-timer.h>
|
#include <asm/plat-s3c/regs-timer.h>
|
||||||
|
|
||||||
struct pwm_device {
|
struct pwm_device {
|
||||||
@ -168,7 +169,7 @@ void pwm_disable(struct pwm_device *pwm)
|
|||||||
|
|
||||||
EXPORT_SYMBOL(pwm_disable);
|
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 long tin_parent_rate;
|
||||||
unsigned int div;
|
unsigned int div;
|
||||||
|
Loading…
Reference in New Issue
Block a user