070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch 921 B

123456789101112131415161718192021222324252627
  1. From 6c081ff6fd5abd621797570be43d5e3c6acfcd58 Mon Sep 17 00:00:00 2001
  2. From: Dan Carpenter <dan.carpenter@oracle.com>
  3. Date: Tue, 10 May 2016 11:01:33 +0300
  4. Subject: [PATCH] phy: bcm-ns-usb2: checking the wrong variable
  5. We intended to test "usb2->phy" here instead of "dev".
  6. Fixes: d3feb4067335 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar')
  7. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
  8. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
  9. ---
  10. drivers/phy/phy-bcm-ns-usb2.c | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. --- a/drivers/phy/phy-bcm-ns-usb2.c
  13. +++ b/drivers/phy/phy-bcm-ns-usb2.c
  14. @@ -109,8 +109,8 @@ static int bcm_ns_usb2_probe(struct plat
  15. }
  16. usb2->phy = devm_phy_create(dev, NULL, &ops);
  17. - if (IS_ERR(dev))
  18. - return PTR_ERR(dev);
  19. + if (IS_ERR(usb2->phy))
  20. + return PTR_ERR(usb2->phy);
  21. phy_set_drvdata(usb2->phy, usb2);
  22. platform_set_drvdata(pdev, usb2);