mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user