]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit656304fc71e5e5d948edad375848a438e0037a05
tree8fa413596153bc9116d3a94fa6e3d646d9df47fc
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
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