Skip to content

Commit

Permalink
pinctrl: core: Make pinctrl_release static
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Sachin Kamat authored and Linus Walleij committed Jan 30, 2013
1 parent ab78029 commit 2917e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2917e83

Please sign in to comment.