From f55feafdee3e73863b80d0d4107382daffd9afe3 Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Sat, 19 Nov 2011 10:10:33 +0000 Subject: [PATCH] drivers/usb/host/ehci-mxc.c: Fix GCC 4.6 warning 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 --- drivers/usb/host/ehci-mxc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c index f403d49e74..61dbccd53c 100644 --- a/drivers/usb/host/ehci-mxc.c +++ b/drivers/usb/host/ehci-mxc.c @@ -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 -- 2.25.1