Skip to content

Commit

Permalink
pinctrl: mxs: Use kfree to fix build error
Browse files Browse the repository at this point in the history
commit 0bf7481 (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: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Fabio Estevam authored and Linus Walleij committed Jun 17, 2012
1 parent 485802a commit 14e1e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14e1e9f

Please sign in to comment.