提交 14e1e9f5 编写于 作者: F Fabio Estevam 提交者: Linus Walleij

pinctrl: mxs: Use kfree to fix build error

commit 0bf74818 (pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails)
introduced the following build error:

drivers/pinctrl/pinctrl-mxs.c:140:3: error: implicit declaration of function 'free'

Use kfree function instead.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 485802a6
......@@ -137,7 +137,7 @@ static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev,
free_group:
if (!purecfg)
free(group);
kfree(group);
free:
kfree(new_map);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册