Stefan Mavrodiev 7630499464 mfd: rk808: Check pm_power_off pointer
The function pointer pm_power_off may point to function from other
module (PSCI for example). If rk808 is removed, pm_power_off is
overwritten to NULL and the system cannot be powered off.

This patch checks if pm_power_off points to a module function.

Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2019-07-02 12:11:31 +01:00
..
2016-11-29 08:21:33 +00:00
2017-07-18 08:27:18 +01:00
2019-07-02 12:11:31 +01:00
2019-05-14 08:13:28 +01:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2019-01-16 13:59:34 +00:00
2019-05-14 08:13:28 +01:00
2019-05-14 08:13:28 +01:00
2019-05-14 08:13:28 +01:00
2019-03-19 13:12:18 +00:00
2015-08-11 15:09:01 +01:00
2019-03-19 13:12:18 +00:00
2015-09-04 11:46:02 -07:00