Skip to contentSkip to conversation

mfd: rn5t618: Unregister restart handler on remove

PATCH Applied Stefan Agner 2 participants 2 messages May 16, 2017 – May 22, 2017 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/mfd/rn5t618.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mfd/rn5t618.c +2 -0
index 8131d1975745..f4037d42a60f 100644
@@ -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
Applied
#1 lore raw
Quoted 7 lines · Stefan Agner

Remove the restart handler registered in probe on device remove.

Fixes a370f60a58ec ("mfd: rn5t618: Register restart handler")
---
 drivers/mfd/rn5t618.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks.

Quoted 13 lines
drivers/mfd/rn5t618.c +2 -0
index 8131d1975745..f4037d42a60f 100644
@@ -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