Commit 7178347e authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Lee Jones

mfd: palmas: Reset pm_power_off if it is set for the device

If Palams supports the system power controller and pm_power_off
is implemented through the Palmas driver then reset the pm_power_off
in driver remove.

This will avoid the call of Palmas driver after removal of driver.
Signed-off-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 2d8edaf0
......@@ -570,6 +570,11 @@ static int palmas_i2c_remove(struct i2c_client *i2c)
regmap_del_irq_chip(palmas->irq, palmas->irq_data);
if (palmas == palmas_dev) {
pm_power_off = NULL;
palmas_dev = NULL;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment