]> git.sur5r.net Git - u-boot/commitdiff
drivers/usb/host/ehci-fsl.c: Fix GCC 4.6 build warning
authorKumar Gala <galak@kernel.crashing.org>
Wed, 9 Nov 2011 16:04:15 +0000 (10:04 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 11 Nov 2011 13:49:01 +0000 (07:49 -0600)
Fix:

ehci-fsl.c: In function 'ehci_hcd_init':
ehci-fsl.c:43:7: warning: variable 'usb_phy' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/usb/host/ehci-fsl.c

index 5a65d92719a9f083fcc2195b276a9403d9f868dd..b2d294ee88f4d8ff3c448d967c71b9aeb50cb15e 100644 (file)
 int ehci_hcd_init(void)
 {
        struct usb_ehci *ehci;
-       char usb_phy[5];
        const char *phy_type = NULL;
        size_t len;
+#ifdef CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
+       char usb_phy[5];
 
        usb_phy[0] = '\0';
+#endif
 
        ehci = (struct usb_ehci *)CONFIG_SYS_FSL_USB_ADDR;
        hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength);