summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-06-13 14:06:07 -0300
committerLinus Walleij <linus.walleij@linaro.org>2012-06-17 19:44:44 +0200
commit14e1e9f5cadb7cff3a2846c27cc1b9c8f207ee18 (patch)
tree55955528fde822bc3f530b69a552740bd5cad5ff /drivers/pinctrl
parent485802a6c524e62b5924849dd727ddbb1497cc71 (diff)
downloadlinux-stable-14e1e9f5cadb7cff3a2846c27cc1b9c8f207ee18.tar.gz
linux-stable-14e1e9f5cadb7cff3a2846c27cc1b9c8f207ee18.tar.bz2
linux-stable-14e1e9f5cadb7cff3a2846c27cc1b9c8f207ee18.zip
pinctrl: mxs: Use kfree to fix build error
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-mxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c
index afb50ee64598..4ba4636b6a4a 100644
--- a/drivers/pinctrl/pinctrl-mxs.c
+++ b/drivers/pinctrl/pinctrl-mxs.c
@@ -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;