usb: ehci-omap: fix compilation warning
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Tue, 4 May 2010 14:23:09 +0000 (19:53 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:40 +0000 (13:21 -0700)
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>
drivers/usb/host/ehci-omap.c

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