kernel-ark/drivers/extcon
Charles Keepax 17271f608b extcon: arizona: Get MICVDD against extcon device
Previously we would do a regulator get against the main Arizona device
to obtain the MICVDD regulator. Arizona is an MFD device and normally
MICVDD will be supplied by one of its children (the arizona-micsupp
regulator). As devres destruction for the MFD device will run after all
its children have been destroyed, the regulator will be destroyed before
devres calls regulator_put. This causes a warning from both the
destruction of the child node, as the regulator is still open, and from
the put of the regulator as the regulator device has already been
destroyed.

A simple fix here is to get the regulator against the extcon device
itself such that devres runs when the child is destroyed. This has the
additional benefit that if for some reason the extcon driver is unloaded
the regulator reference won't hang around until the MFD is unloaded.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-07-23 10:07:42 +09:00
..
extcon-adc-jack.c extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate 2014-06-16 13:33:19 +09:00
extcon-arizona.c extcon: arizona: Get MICVDD against extcon device 2014-07-23 10:07:42 +09:00
extcon-class.c extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate 2014-06-16 13:33:19 +09:00
extcon-gpio.c extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate 2014-06-16 13:33:19 +09:00
extcon-max8997.c extcon: Remove unnecessary OOM messages 2014-07-23 10:07:09 +09:00
extcon-max14577.c extcon: Remove unnecessary OOM messages 2014-07-23 10:07:09 +09:00
extcon-max77693.c extcon: Remove unnecessary OOM messages 2014-07-23 10:07:09 +09:00
extcon-palmas.c extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate 2014-06-16 13:33:19 +09:00
Kconfig extcon: Reorder the sequence of extcon device driver alphabetically 2014-06-16 13:33:18 +09:00
Makefile extcon: Reorder the sequence of extcon device driver alphabetically 2014-06-16 13:33:18 +09:00