summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/core.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-01-24 15:01:00 +0530
committerLinus Walleij <linus.walleij@linaro.org>2013-01-30 11:00:58 +0100
commit2917e8338c9b8fbd7374621a3291004984590d21 (patch)
treec4b3186a7eb9df09bba0b7345e828be1c3179dcd /drivers/pinctrl/core.c
parentab78029ecc347debbd737f06688d788bd9d60c1d (diff)
downloadlwn-2917e8338c9b8fbd7374621a3291004984590d21.tar.gz
lwn-2917e8338c9b8fbd7374621a3291004984590d21.zip
pinctrl: core: Make pinctrl_release static
'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>
Diffstat (limited to 'drivers/pinctrl/core.c')
-rw-r--r--drivers/pinctrl/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 5a2fe9aae20f..b0a8e9a38393 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -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);