[PATCH 5.18 557/879] platform/chrome: cros_ec: fix error handling in cros_ec_register()