Commit ecca790a authored by Stefan Agner's avatar Stefan Agner Committed by Lee Jones

mfd: rn5t618: Unregister restart handler on remove

Remove the restart handler registered in probe on device remove.

Fixes: a370f60a ("mfd: rn5t618: Register restart handler")
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent dcb0574b
...@@ -155,6 +155,8 @@ static int rn5t618_i2c_remove(struct i2c_client *i2c) ...@@ -155,6 +155,8 @@ static int rn5t618_i2c_remove(struct i2c_client *i2c)
pm_power_off = NULL; pm_power_off = NULL;
} }
unregister_restart_handler(&rn5t618_restart_handler);
return 0; 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