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