mfd: rn5t618: Unregister restart handler on remove
PATCH 1/1 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 <[email protected]>
--- drivers/mfd/rn5t618.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mfd/rn5t618.c +2 -0
@@ -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 ; }
Signature · 1 line
2.13.0
Lee Jones
AppliedQuoted 7 lines · Stefan Agner
Remove the restart handler registered in probe on device remove.
Fixes a370f60a58ec ("mfd: rn5t618: Register restart handler")Signed-off-by Stefan Agner <[email protected]>--- drivers/mfd/rn5t618.c | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks.
Quoted 13 lines
drivers/mfd/rn5t618.c +2
-0@@ -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 ; }
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog