diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-02-16 16:03:02 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-09 10:21:14 +0200 |
| commit | acd2313bd99d94fba4696d49ced7ab7a091e1c54 (patch) | |
| tree | 7414bf8c7fa13d06dac9ac5d0a670b74c58c1f22 /include/linux | |
| parent | e690350d3d9f248eb5fa7edb5371878473af1278 (diff) | |
platform/chrome: cros_ec: fix error handling in cros_ec_register()
[ Upstream commit 2cd01bd6b117df07b1bc2852f08694fdd29e40ed ]
Fix cros_ec_register() to unregister platform devices if
blocking_notifier_chain_register() fails.
Also use the single exit path to handle the platform device
unregistration.
Fixes: 42cd0ab476e2 ("platform/chrome: cros_ec: Query EC protocol version if EC transitions between RO/RW")
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
