From: Benson Leung Date: Tue, 2 Feb 2021 16:45:31 +0000 (-0800) Subject: platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision X-Git-Tag: accepted/tizen/unified/20230118.172025~7877^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64eaa0fa66ac55965f793a8b65730299854e55cd;p=platform%2Fkernel%2Flinux-rpi.git platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision typec_partner_set_pd_revision returns void now. Fixes: cefc011f8daf ("platform/chrome: cros_ec_typec: Set Partner PD revision from status") Signed-off-by: Benson Leung Link: https://lore.kernel.org/r/20210202164531.3982778-1-bleung@chromium.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c index a777825..7b93dfd 100644 --- a/drivers/platform/chrome/cros_ec_typec.c +++ b/drivers/platform/chrome/cros_ec_typec.c @@ -842,11 +842,7 @@ static int cros_typec_handle_sop_disc(struct cros_typec_data *typec, int port_nu goto disc_exit; } - ret = typec_partner_set_pd_revision(port->partner, pd_revision); - if (ret < 0) { - dev_err(typec->dev, "Failed to update partner PD revision, port: %d\n", port_num); - goto disc_exit; - } + typec_partner_set_pd_revision(port->partner, pd_revision); memset(sop_disc, 0, EC_PROTO2_MAX_RESPONSE_SIZE); ret = cros_typec_ec_command(typec, 0, EC_CMD_TYPEC_DISCOVERY, &req, sizeof(req),