pinctrl: pinctrl-mxs: set platform driver data to NULL at errpath and at unregister
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 9 Jun 2012 12:02:31 +0000 (17:32 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Jun 2012 14:26:08 +0000 (16:26 +0200)
commit149ff9e1f240e7b57a02e0be5f74f21d0307d1d3
tree8f9f4eaeec806671e87eac9283908c13c05b50d3
parent0bf7481852c8ece4888c299ba0259b789c3dbde3
pinctrl: pinctrl-mxs: set platform driver data to NULL at errpath and at unregister

clear the platform data pointer when mxs_pinctrl_probe_dt fails,
and also before the unregistering with pinctrl subsystem.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mxs.c