提交 2917e833 编写于 作者: S Sachin Kamat 提交者: Linus Walleij

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: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 ab78029e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册