projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: phy: Fix NULL pointer exception during usb_get_phy
[cascardo/linux.git]
/
drivers
/
usb
/
phy
/
phy-fsl-usb.c
diff --git
a/drivers/usb/phy/phy-fsl-usb.c
b/drivers/usb/phy/phy-fsl-usb.c
index
97b9308
..
e771baf
100644
(file)
--- a/
drivers/usb/phy/phy-fsl-usb.c
+++ b/
drivers/usb/phy/phy-fsl-usb.c
@@
-799,6
+799,7
@@
static int fsl_otg_conf(struct platform_device *pdev)
/* initialize the otg structure */
fsl_otg_tc->phy.label = DRIVER_DESC;
+ fsl_otg_tc->phy.dev = &pdev->dev;
fsl_otg_tc->phy.set_power = fsl_otg_set_power;
fsl_otg_tc->phy.otg->phy = &fsl_otg_tc->phy;