diff options
| author | 2022-02-16 16:03:02 +0800 | |
|---|---|---|
| committer | 2022-04-18 15:39:27 +0800 | |
| commit | 2cd01bd6b117df07b1bc2852f08694fdd29e40ed (patch) | |
| tree | 09d587e0cb2a6eb8acabdf7a9897bc855cf1f4ff /include/linux | |
| parent | Linux 5.18-rc1 (diff) | |
| download | linux-dev-2cd01bd6b117df07b1bc2852f08694fdd29e40ed.tar.xz linux-dev-2cd01bd6b117df07b1bc2852f08694fdd29e40ed.zip | |
platform/chrome: cros_ec: fix error handling in cros_ec_register()
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
