Skip to content

Commit

Permalink
phy: bcm-ns-usb2: checking the wrong variable
Browse files Browse the repository at this point in the history
We intended to test "usb2->phy" here instead of "dev".

Fixes: d3feb40 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
  • Loading branch information
Dan Carpenter authored and Kishon Vijay Abraham I committed Jun 17, 2016
1 parent d99cb37 commit 6c081ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/phy/phy-bcm-ns-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ static int bcm_ns_usb2_probe(struct platform_device *pdev)
}

usb2->phy = devm_phy_create(dev, NULL, &ops);
if (IS_ERR(dev))
return PTR_ERR(dev);
if (IS_ERR(usb2->phy))
return PTR_ERR(usb2->phy);

phy_set_drvdata(usb2->phy, usb2);
platform_set_drvdata(pdev, usb2);
Expand Down

0 comments on commit 6c081ff

Please sign in to comment.