111-use-usb2-phy-for-zynq-platform.patch 468 B

12345678910111213
  1. --- a/drivers/usb/chipidea/ci_hdrc_usb2.c
  2. +++ b/drivers/usb/chipidea/ci_hdrc_usb2.c
  3. @@ -59,6 +59,10 @@ static int ci_hdrc_usb2_probe(struct pla
  4. if (match && match->data) {
  5. /* struct copy */
  6. *ci_pdata = *(struct ci_hdrc_platform_data *)match->data;
  7. + ci_pdata->usb_phy = devm_usb_get_phy_by_phandle(dev, "usb-phy",
  8. + 0);
  9. + if (IS_ERR(ci_pdata->usb_phy))
  10. + return PTR_ERR(ci_pdata->usb_phy);
  11. }
  12. priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);