diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-02 03:02:42 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-08-17 08:08:24 -0400 |
commit | dfeb86ecde7ae6ce15bd69a6a205b5e13aea8111 (patch) | |
tree | 07b0ea998161300e9e3c1f92e939a14c7b1e3508 /drivers/pwm | |
parent | d9875690d9b89a866022ff49e3fcea892345ad92 (diff) |
pwm: Add missing static storage class specifiers in core.c file
Fixes the following sparse warnings:
drivers/pwm/core.c:152:6: warning:
symbol 'of_pwmchip_add' was not declared. Should it be static?
drivers/pwm/core.c:165:6: warning:
symbol 'of_pwmchip_remove' was not declared. Should it be static?
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index ecb76909e946..4a8bdfa79e7f 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c | |||
@@ -149,7 +149,7 @@ static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc, | |||
149 | return pwm; | 149 | return pwm; |
150 | } | 150 | } |
151 | 151 | ||
152 | void of_pwmchip_add(struct pwm_chip *chip) | 152 | static void of_pwmchip_add(struct pwm_chip *chip) |
153 | { | 153 | { |
154 | if (!chip->dev || !chip->dev->of_node) | 154 | if (!chip->dev || !chip->dev->of_node) |
155 | return; | 155 | return; |
@@ -162,7 +162,7 @@ void of_pwmchip_add(struct pwm_chip *chip) | |||
162 | of_node_get(chip->dev->of_node); | 162 | of_node_get(chip->dev->of_node); |
163 | } | 163 | } |
164 | 164 | ||
165 | void of_pwmchip_remove(struct pwm_chip *chip) | 165 | static void of_pwmchip_remove(struct pwm_chip *chip) |
166 | { | 166 | { |
167 | if (chip->dev && chip->dev->of_node) | 167 | if (chip->dev && chip->dev->of_node) |
168 | of_node_put(chip->dev->of_node); | 168 | of_node_put(chip->dev->of_node); |