Advertisement
Guest User

Untitled

a guest
Feb 12th, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.85 KB | None | 0 0
  1. diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
  2. index 6d27a5b5e3ca..7ffcda94d323 100644
  3. --- a/drivers/usb/typec/tipd/core.c
  4. +++ b/drivers/usb/typec/tipd/core.c
  5. @@ -761,12 +761,12 @@ static int tps6598x_probe(struct i2c_client *client)
  6.  
  7.     ret = tps6598x_read32(tps, TPS_REG_STATUS, &status);
  8.     if (ret < 0)
  9. -       return ret;
  10. +       goto err_clear_mask;
  11.     trace_tps6598x_status(status);
  12.  
  13.     ret = tps6598x_read32(tps, TPS_REG_SYSTEM_CONF, &conf);
  14.     if (ret < 0)
  15. -       return ret;
  16. +       goto err_clear_mask;
  17.  
  18.     /*
  19.      * This fwnode has a "compatible" property, but is never populated as a
  20. @@ -855,7 +855,8 @@ static int tps6598x_probe(struct i2c_client *client)
  21.     usb_role_switch_put(tps->role_sw);
  22.  err_fwnode_put:
  23.     fwnode_handle_put(fwnode);
  24. -
  25. +err_clear_mask:
  26. +   tps6598x_write64(tps, TPS_REG_INT_MASK1, 0);
  27.     return ret;
  28.  }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement