* [PATCH] mfd: rn5t618: Unregister restart handler on remove
@ 2017-05-16 6:24 Stefan Agner
2017-05-22 10:57 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2017-05-16 6:24 UTC (permalink / raw)
To: lee.jones; +Cc: linux-kernel, Stefan Agner
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>
---
drivers/mfd/rn5t618.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
--
2.13.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd: rn5t618: Unregister restart handler on remove
2017-05-16 6:24 [PATCH] mfd: rn5t618: Unregister restart handler on remove Stefan Agner
@ 2017-05-22 10:57 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2017-05-22 10:57 UTC (permalink / raw)
To: Stefan Agner; +Cc: linux-kernel
On Mon, 15 May 2017, Stefan Agner wrote:
> 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>
> ---
> drivers/mfd/rn5t618.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
> 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;
> }
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-22 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16 6:24 [PATCH] mfd: rn5t618: Unregister restart handler on remove Stefan Agner
2017-05-22 10:57 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).