diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2015-08-11 13:22:19 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-08-21 16:46:38 +0200 |
commit | b68c3161430a4c7c0a001e658188bfea6a2fe5bd (patch) | |
tree | 4b27f2cc3f0380211227c4a34b4889cfee384aea /tools | |
parent | b49d15d138aa4632f35a2db93dee775d920f3653 (diff) |
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 'tools')
0 files changed, 0 insertions, 0 deletions