[PATCH 5.17 469/772] platform/chrome: cros_ec: fix error handling in cros_ec_register()