summaryrefslogtreecommitdiff
path: root/drivers/power/pm2301_charger.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2015-08-11 14:22:19 +0300
committerSebastian Reichel <sre@kernel.org>2015-08-21 17:46:38 +0300
commitb68c3161430a4c7c0a001e658188bfea6a2fe5bd (patch)
tree4b27f2cc3f0380211227c4a34b4889cfee384aea /drivers/power/pm2301_charger.c
parentb49d15d138aa4632f35a2db93dee775d920f3653 (diff)
downloadlinux-b68c3161430a4c7c0a001e658188bfea6a2fe5bd.tar.xz
bq2415x_charger: Allow to load and use driver even if notify device is not registered yet
Driver bq2415x_charger works also without notify power supply device for charger detection. But when charger detection is specified in DT, then bq2415x_charger refused to loaded with -EPROBE_DEFER. This patch rewrites code so that notify device for charger detection is checked when power supply event is received and not when registering power supply device. So this patch allows to use bq2415x_charger driver also when kernel is compiled without driver for notify power supply device. Now after this patch scheduled workqueue is called after INIT_DELAYED_WORK, so it also fix problem when scheduled workqueue was called before init. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/pm2301_charger.c')
0 files changed, 0 insertions, 0 deletions