mfd: rk808: correct condition check to set pm_power_off as NULL

Fixes porting:
(62e9bedcf2 UPSTREAM: mfd: rk808: Check pm_power_off pointer)

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2fdb6bf8dc40260a68fb5b1155617f6dfebb4707
This commit is contained in:
Joseph Chen
2021-10-14 07:23:48 +00:00
committed by Tao Huang
parent ff3fb24350
commit 00ae76eb0b

View File

@@ -1431,7 +1431,7 @@ static int rk808_remove(struct i2c_client *client)
* pm_power_off may points to a function from another module.
* Check if the pointer is set by us and only then overwrite it.
*/
if (rk808->pm_pwroff_fn && pm_power_off == rk808->pm_pwroff_fn)
if (pm_power_off == rk808_pm_power_off_dummy)
pm_power_off = NULL;
/**