From: Stefan Agner Date: Tue, 16 May 2017 06:24:11 +0000 (-0700) Subject: mfd: rn5t618: Unregister restart handler on remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ecca790a1aabd4a0e6fcdf7c3a0c81f3a4f38b6a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index 8131d1975745..f4037d42a60f 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -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; }