[PATCH 5.15 402/667] platform/chrome: cros_ec: fix error handling in cros_ec_register()