mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
mfd: rn5t618: Unregister restart handler on remove
Remove the restart handler registered in probe on device remove.
Fixes: a370f60a58 ("mfd: rn5t618: Register restart handler")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
dcb0574b4b
commit
ecca790a1a
1 changed files with 2 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ static int rn5t618_i2c_remove(struct i2c_client *i2c)
|
|||
pm_power_off = NULL;
|
||||
}
|
||||
|
||||
unregister_restart_handler(&rn5t618_restart_handler);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue