]> git.sur5r.net Git - u-boot/commitdiff
drivers/usb/host/ehci-mxc.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 19 Nov 2011 10:10:33 +0000 (10:10 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Dec 2011 09:34:53 +0000 (10:34 +0100)
Fix:
ehci-mxc.c: In function 'ehci_hcd_init':
ehci-mxc.c:113:6: warning: variable 'tmp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/usb/host/ehci-mxc.c

index f403d49e7462b75a4a14d45703c6497954fde12e..61dbccd53cd7a01f8f15a8fcf329428f14137921 100644 (file)
@@ -110,11 +110,10 @@ int ehci_hcd_init(void)
 {
        struct usb_ehci *ehci;
 #ifdef CONFIG_MX31
-       u32 tmp;
        struct clock_control_regs *sc_regs =
                (struct clock_control_regs *)CCM_BASE;
 
-       tmp = __raw_readl(&sc_regs->ccmr);
+       __raw_readl(&sc_regs->ccmr);
        __raw_writel(__raw_readl(&sc_regs->ccmr) | (1 << 9), &sc_regs->ccmr) ;
 #endif