Commit dfeb86ec authored by Sachin Kamat's avatar Sachin Kamat Committed by Thierry Reding

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent d9875690
...@@ -149,7 +149,7 @@ static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc, ...@@ -149,7 +149,7 @@ static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc,
return pwm; return pwm;
} }
void of_pwmchip_add(struct pwm_chip *chip) static void of_pwmchip_add(struct pwm_chip *chip)
{ {
if (!chip->dev || !chip->dev->of_node) if (!chip->dev || !chip->dev->of_node)
return; return;
...@@ -162,7 +162,7 @@ void of_pwmchip_add(struct pwm_chip *chip) ...@@ -162,7 +162,7 @@ void of_pwmchip_add(struct pwm_chip *chip)
of_node_get(chip->dev->of_node); of_node_get(chip->dev->of_node);
} }
void of_pwmchip_remove(struct pwm_chip *chip) static void of_pwmchip_remove(struct pwm_chip *chip)
{ {
if (chip->dev && chip->dev->of_node) if (chip->dev && chip->dev->of_node)
of_node_put(chip->dev->of_node); of_node_put(chip->dev->of_node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment