projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d99cb37
)
phy: bcm-ns-usb2: checking the wrong variable
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 10 May 2016 08:01:33 +0000
(11:01 +0300)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Fri, 17 Jun 2016 13:32:08 +0000
(19:02 +0530)
We intended to test "usb2->phy" here instead of "dev".
Fixes: d3feb4067335 ('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>
drivers/phy/phy-bcm-ns-usb2.c
patch
|
blob
|
history
diff --git
a/drivers/phy/phy-bcm-ns-usb2.c
b/drivers/phy/phy-bcm-ns-usb2.c
index 95ab6b2a0de5e1bc8dda4bdd640d2ff725f436ae..58dff80e9386d67d43ac5a1b9f67ba55f7c49788 100644
(file)
--- a/
drivers/phy/phy-bcm-ns-usb2.c
+++ b/
drivers/phy/phy-bcm-ns-usb2.c
@@
-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);