usb: otg: mxs-phy: add missing type to usb_phy
authorMichael Grzeschik <mgr@pengutronix.de>
Wed, 15 May 2013 13:03:14 +0000 (15:03 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 15 May 2013 14:34:01 +0000 (17:34 +0300)
The mxs-phy is missing the phy.type property, why the usb_get_phy helper
function won't be able to find it. This patch adds this missing property.

Signed-off-by: Michael Grzeschik <mgr@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-mxs-usb.c

index 763250b..bd601c5 100644 (file)
@@ -155,6 +155,7 @@ static int mxs_phy_probe(struct platform_device *pdev)
        mxs_phy->phy.set_suspend        = mxs_phy_suspend;
        mxs_phy->phy.notify_connect     = mxs_phy_on_connect;
        mxs_phy->phy.notify_disconnect  = mxs_phy_on_disconnect;
+       mxs_phy->phy.type               = USB_PHY_TYPE_USB2;
 
        ATOMIC_INIT_NOTIFIER_HEAD(&mxs_phy->phy.notifier);