commit | 5bcb5087c9dd3dca1ff0ebd8002c5313c9332b56 | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Sun May 23 00:50:41 2021 +0200 |
committer | Sebastian Reichel <sre@kernel.org> | Thu Jun 03 18:40:15 2021 +0200 |
tree | 50279bcd7fb85a644fdeb405b1499e356f9b4200 | |
parent | 7e2bb83c617f8fccc04db7d03f105a06b9d491a9 [diff] |
power: supply: ab8500: Avoid NULL pointers Sometimes the code will crash because we haven't enabled AC or USB charging and thus not created the corresponding psy device. Fix it by checking that it is there before notifying. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>