Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: rn5t618: Unregister restart handler on remove

Remove the restart handler registered in probe on device remove.

Fixes: a370f60a58ec ("mfd: rn5t618: Register restart handler")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Stefan Agner and committed by
Lee Jones
ecca790a dcb0574b

+2
+2
drivers/mfd/rn5t618.c
··· 155 155 pm_power_off = NULL; 156 156 } 157 157 158 + unregister_restart_handler(&rn5t618_restart_handler); 159 + 158 160 return 0; 159 161 } 160 162