summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/phy-am335x.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-10-24 18:45:29 +0400
committerFelipe Balbi <balbi@ti.com>2013-11-25 20:25:57 +0400
commitaf9f51c5512f9d55972603dd5dd90d0fa300b200 (patch)
tree599735437d547dfd14d23d67a4028c507e6a5762 /drivers/usb/phy/phy-am335x.c
parent39189c98d161c292e7f80fe50da00d33193362b9 (diff)
downloadlinux-af9f51c5512f9d55972603dd5dd90d0fa300b200.tar.xz
usb: phy: generic: fix how we find out about our resources
instead of having each user of generic phy find out about its own resources and pass it to the core layer, have th core layer itself figure that out. It's as simple as moving a piece of code around. This fixes a big regression caused during the merge window where am335x-based platforms wouldn't be able to probe their PHY driver. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-am335x.c')
-rw-r--r--drivers/usb/phy/phy-am335x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c
index 48d41abd1b6b..0e3c60cb669a 100644
--- a/drivers/usb/phy/phy-am335x.c
+++ b/drivers/usb/phy/phy-am335x.c
@@ -52,8 +52,7 @@ static int am335x_phy_probe(struct platform_device *pdev)
return am_phy->id;
}
- ret = usb_phy_gen_create_phy(dev, &am_phy->usb_phy_gen,
- USB_PHY_TYPE_USB2, 0, false);
+ ret = usb_phy_gen_create_phy(dev, &am_phy->usb_phy_gen, NULL);
if (ret)
return ret;