mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]>
Acked-by: Devendra Naga <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
485802a6c5
commit
14e1e9f5ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue