提交 ecca790a 编写于 作者: S Stefan Agner 提交者: 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: NStefan Agner <stefan@agner.ch>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册