summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-19 10:10:33 +0000
committerWolfgang Denk <wd@denx.de>2011-12-09 10:34:53 +0100
commitf55feafdee3e73863b80d0d4107382daffd9afe3 (patch)
treec292f9b9e0a1bcf151253b0e6466acdfe26e26b3 /drivers/usb
parent13119bc9fb1e1f3639b4cbb5166ccb3ab5673dcf (diff)
downloadu-boot-imx-f55feafdee3e73863b80d0d4107382daffd9afe3.zip
u-boot-imx-f55feafdee3e73863b80d0d4107382daffd9afe3.tar.gz
u-boot-imx-f55feafdee3e73863b80d0d4107382daffd9afe3.tar.bz2
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 <agust@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-mxc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index f403d49..61dbccd 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