extcon: arizona: Get pdata from arizona structure not device
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Sat, 28 Sep 2013 14:34:57 +0000 (15:34 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 26 Nov 2013 05:30:10 +0000 (14:30 +0900)
commit6ac6b475c56ce4bbaf36b02db7d1372f2e17aeec
tree8fa413596153bc9116d3a94fa6e3d646d9df47fc
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
extcon: arizona: Get pdata from arizona structure not device

In the case of a device tree system there will be no pdata attached to
the device, causing us to deference a NULL pointer. Better to take the
pdata from the Arizona structure as this will always exist and we know
will have been populated since it is populated by the MFD device which
binds in the extcon driver.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c