diff options
| -rw-r--r-- | drivers/usb/typec/tcpm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index 4483dc4162b0..1ee259bc14a5 100644 --- a/drivers/usb/typec/tcpm.c +++ b/drivers/usb/typec/tcpm.c | |||
| @@ -2206,8 +2206,9 @@ static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) | |||
| 2206 | unsigned int mv, ma, mw, flags; | 2206 | unsigned int mv, ma, mw, flags; |
| 2207 | unsigned int max_ma, max_mw; | 2207 | unsigned int max_ma, max_mw; |
| 2208 | enum pd_pdo_type type; | 2208 | enum pd_pdo_type type; |
| 2209 | int src_pdo_index, snk_pdo_index; | ||
| 2210 | u32 pdo, matching_snk_pdo; | 2209 | u32 pdo, matching_snk_pdo; |
| 2210 | int src_pdo_index = 0; | ||
| 2211 | int snk_pdo_index = 0; | ||
| 2211 | int ret; | 2212 | int ret; |
| 2212 | 2213 | ||
| 2213 | ret = tcpm_pd_select_pdo(port, &snk_pdo_index, &src_pdo_index); | 2214 | ret = tcpm_pd_select_pdo(port, &snk_pdo_index, &src_pdo_index); |
