projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
485802a
)
pinctrl: mxs: Use kfree to fix build error
author
Fabio Estevam
<fabio.estevam@freescale.com>
Wed, 13 Jun 2012 17:06:07 +0000
(14:06 -0300)
committer
Linus Walleij
<linus.walleij@linaro.org>
Sun, 17 Jun 2012 17:44:44 +0000
(19:44 +0200)
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>
drivers/pinctrl/pinctrl-mxs.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-mxs.c
b/drivers/pinctrl/pinctrl-mxs.c
index
afb50ee
..
4ba4636
100644
(file)
--- 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);
+
k
free(group);
free:
kfree(new_map);
return ret;