Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1642235 > unrolled thread

[PATCH] mfd: rn5t618: Unregister restart handler on remove

Started byStefan Agner <stefan@agner.ch>
First post2017-05-16 08:30 +0200
Last post2017-05-22 13:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] mfd: rn5t618: Unregister restart handler on remove Stefan Agner <stefan@agner.ch> - 2017-05-16 08:30 +0200
    Re: [PATCH] mfd: rn5t618: Unregister restart handler on remove Lee Jones <lee.jones@linaro.org> - 2017-05-22 13:00 +0200

#1642235 — [PATCH] mfd: rn5t618: Unregister restart handler on remove

FromStefan Agner <stefan@agner.ch>
Date2017-05-16 08:30 +0200
Subject[PATCH] mfd: rn5t618: Unregister restart handler on remove
Message-ID<tHE9z-22D-9@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1646739

FromLee Jones <lee.jones@linaro.org>
Date2017-05-22 13:00 +0200
Message-ID<tJTea-4Fe-25@gated-at.bofh.it>
In reply to#1642235
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web