[PATCH openEuler-5.10 261/427] platform/chrome: cros_ec: fix error handling in cros_ec_register()