pinctrl: pinctrl-imx: free if of_get_parent fails to get the parent node
authorDevendra Naga <[email protected]>
Thu, 7 Jun 2012 16:49:26 +0000 (22:19 +0530)
committerLinus Walleij <[email protected]>
Tue, 12 Jun 2012 11:35:32 +0000 (13:35 +0200)
commitc71157c54a4f86e4f355dc6952268e8536013502
treecb21f82ff8496262bba2271a478249507a441ffc
parent3a86a5f8abb33956446ae31b1e9c149d7b2d1d21
pinctrl: pinctrl-imx: free if of_get_parent fails to get the parent node

of_get_parent can return null if no parent node found, so the allocated new_map
should be freed.

Signed-off-by: Devendra Naga <[email protected]>
Acked-by: Dong Aisheng <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/pinctrl-imx.c