usb: gadget: tegra: fix compilation issue
Rakesh Bodla [Wed, 8 Aug 2012 08:44:53 +0000 (13:44 +0530)]
Fixing the potential compilation this is
currently masked as CONFIG_USB_OTG_UTILS
is enabled.

Change-Id: Ie10e5fc252156b8b904d387d87a11136fcc3f4c1
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/122043
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit a50e57e22bb42aa20e59686af148d24f09291c54)
Reviewed-on: http://git-master/r/123485
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/usb/gadget/tegra_udc.c

index db5b728..3e82222 100644 (file)
@@ -2658,7 +2658,7 @@ static int __init tegra_udc_probe(struct platform_device *pdev)
        }
 #else
        /* Power down the phy if cable is not connected */
-       if (!vbus_enabled())
+       if (!vbus_enabled(udc))
                tegra_usb_phy_power_off(udc->phy);
 #endif