瀏覽代碼

usb: ehci-omap: fix compilation warning

Fixes below compilation warning:
drivers/usb/host/ehci-hcd.c:425:
	warning: 'ehci_port_power' defined but not used

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Ajay Kumar Gupta 15 年之前
父節點
當前提交
289621c31b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/usb/host/ehci-omap.c

+ 3 - 0
drivers/usb/host/ehci-omap.c

@@ -659,6 +659,9 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 		goto err_add_hcd;
 		goto err_add_hcd;
 	}
 	}
 
 
+	/* root ports should always stay powered */
+	ehci_port_power(omap->ehci, 1);
+
 	return 0;
 	return 0;
 
 
 err_add_hcd:
 err_add_hcd: