projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: musb: am35x: fix error return code in am35x_probe()
[cascardo/linux.git]
/
drivers
/
usb
/
musb
/
am35x.c
diff --git
a/drivers/usb/musb/am35x.c
b/drivers/usb/musb/am35x.c
index
c14577d
..
50ca805
100644
(file)
--- a/
drivers/usb/musb/am35x.c
+++ b/
drivers/usb/musb/am35x.c
@@
-510,8
+510,10
@@
static int am35x_probe(struct platform_device *pdev)
pdata->platform_ops = &am35x_ops;
glue->phy = usb_phy_generic_register();
- if (IS_ERR(glue->phy))
+ if (IS_ERR(glue->phy)) {
+ ret = PTR_ERR(glue->phy);
goto err7;
+ }
platform_set_drvdata(pdev, glue);
pinfo = am35x_dev_info;