pinctrl: abx500: Specify failed sub-driver by ID instead of driver_data
authorLee Jones <lee.jones@linaro.org>
Wed, 8 May 2013 13:29:07 +0000 (14:29 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 14 May 2013 08:34:55 +0000 (10:34 +0200)
commit2fcad12eb4d80b174c69bfbc34d1c094ad37e1bd
tree6270d520607cde83b93dcee755cb32fb66c434af
parentf722406faae2d073cc1d01063d1123c35425939e
pinctrl: abx500: Specify failed sub-driver by ID instead of driver_data

If a sub-driver has not been specified correctly, there is a good chance
that plat_id is NULL, hence using an attribute of plat_id in the error
message is likely to not only fail the driver but Oops the kernel. Use
the failed ID instead.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-abx500.c