Skip to content

Commit

Permalink
usb: gadget: mv_udc_core: check against CONFIG_USB_PHY
Browse files Browse the repository at this point in the history
CONFIG_USB_OTG_UTILS will be removed very
soon, so we should check CONFIG_USB_PHY
instead.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 820d088 commit 1d3dbfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ static int mv_udc_probe(struct platform_device *pdev)

udc->dev = pdev;

#ifdef CONFIG_USB_OTG_UTILS
#if IS_ENABLED(CONFIG_USB_PHY)
if (pdata->mode == MV_USB_MODE_OTG) {
udc->transceiver = devm_usb_get_phy(&pdev->dev,
USB_PHY_TYPE_USB2);
Expand Down

0 comments on commit 1d3dbfc

Please sign in to comment.