summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rn5t618.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2017-05-15 23:24:11 -0700
committerLee Jones <lee.jones@linaro.org>2017-07-06 08:29:11 +0100
commitecca790a1aabd4a0e6fcdf7c3a0c81f3a4f38b6a (patch)
treefc7e8f6e1ad02f97453d7636124837a4c97bd4dd /drivers/mfd/rn5t618.c
parentdcb0574b4b15e197e4ab2b503efcfa5eb172083d (diff)
downloadlinux-stable-ecca790a1aabd4a0e6fcdf7c3a0c81f3a4f38b6a.tar.gz
linux-stable-ecca790a1aabd4a0e6fcdf7c3a0c81f3a4f38b6a.tar.bz2
linux-stable-ecca790a1aabd4a0e6fcdf7c3a0c81f3a4f38b6a.zip
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 <stefan@agner.ch> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/rn5t618.c')
-rw-r--r--drivers/mfd/rn5t618.c2
1 files changed, 2 insertions, 0 deletions
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;
}