pinctrl: core: Make pinctrl_release static
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 24 Jan 2013 09:31:00 +0000 (15:01 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Jan 2013 10:00:58 +0000 (11:00 +0100)
'pinctrl_release' is used only in this file. Hence make it static.

Without this patch we get the following sparse error:
drivers/pinctrl/core.c:815:6: warning:
symbol 'pinctrl_release' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c

index 5a2fe9a..b0a8e9a 100644 (file)
@@ -812,7 +812,7 @@ static void pinctrl_put_locked(struct pinctrl *p, bool inlist)
  * pinctrl_release() - release the pinctrl handle
  * @kref: the kref in the pinctrl being released
  */
-void pinctrl_release(struct kref *kref)
+static void pinctrl_release(struct kref *kref)
 {
        struct pinctrl *p = container_of(kref, struct pinctrl, users);