diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 5a7b54714cc6..168dfcf31203 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -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; /**