Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecca790a authored by Stefan Agner's avatar Stefan Agner Committed by Lee Jones
Browse files

mfd: rn5t618: Unregister restart handler on remove



Remove the restart handler registered in probe on device remove.

Fixes: a370f60a ("mfd: rn5t618: Register restart handler")
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent dcb0574b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}