Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c081ff6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kishon Vijay Abraham I
Browse files

phy: bcm-ns-usb2: checking the wrong variable



We intended to test "usb2->phy" here instead of "dev".

Fixes: d3feb406 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent d99cb378
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);