]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/chrome: cros_ec: Unregister notifier in cros_ec_unregister()
authorTzung-Bi Shih <tzungbi@kernel.org>
Thu, 21 Aug 2025 15:08:44 +0000 (11:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:24:32 +0000 (16:24 +0200)
commit8af89a96144ece7585210d418917cfaade6b51fb
tree6f7a035aa3ceb7d1004b36d873d8d2d27d35cd61
parent9936cb9ef2d201448adc3b5a31e8b6941bc81594
platform/chrome: cros_ec: Unregister notifier in cros_ec_unregister()

[ Upstream commit e2374953461947eee49f69b3e3204ff080ef31b1 ]

The blocking notifier is registered in cros_ec_register(); however, it
isn't unregistered in cros_ec_unregister().

Fix it.

Fixes: 42cd0ab476e2 ("platform/chrome: cros_ec: Query EC protocol version if EC transitions between RO/RW")
Cc: stable@vger.kernel.org
Reviewed-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20250722120513.234031-1-tzungbi@kernel.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/chrome/cros_ec.c