summaryrefslogtreecommitdiff
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-12-03 06:46:10 +0000
committerWolfgang Denk <wd@denx.de>2011-12-09 10:36:33 +0100
commitc594a8de4ed8635d06f5f1588da93c962e13110f (patch)
treec6ce3de93af993781f88f4cef1cde81c86397114 /drivers/usb/musb
parentf55feafdee3e73863b80d0d4107382daffd9afe3 (diff)
downloadu-boot-imx-c594a8de4ed8635d06f5f1588da93c962e13110f.zip
u-boot-imx-c594a8de4ed8635d06f5f1588da93c962e13110f.tar.gz
u-boot-imx-c594a8de4ed8635d06f5f1588da93c962e13110f.tar.bz2
drivers/usb/musb/musb_udc.c: Fix GCC 4.6 warning
Fix: musb_udc.c: In function 'musb_peri_softconnect': musb_udc.c:166:14: warning: variable 'intrtx' set but not used [-Wunused-but-set-variable] musb_udc.c:166:6: warning: variable 'intrrx' set but not used [-Wunused-but-set-variable] musb_udc.c:165:5: warning: variable 'intrusb' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Acked-by: Remy Bohmer <linux@bohmer.net> Acked-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_udc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c
index 6f6ed61..09cdec3 100644
--- a/drivers/usb/musb/musb_udc.c
+++ b/drivers/usb/musb/musb_udc.c
@@ -162,8 +162,6 @@ static void musb_db_regs(void)
static void musb_peri_softconnect(void)
{
u8 power, devctl;
- u8 intrusb;
- u16 intrrx, intrtx;
/* Power off MUSB */
power = readb(&musbr->power);
@@ -171,9 +169,9 @@ static void musb_peri_softconnect(void)
writeb(power, &musbr->power);
/* Read intr to clear */
- intrusb = readb(&musbr->intrusb);
- intrrx = readw(&musbr->intrrx);
- intrtx = readw(&musbr->intrtx);
+ readb(&musbr->intrusb);
+ readw(&musbr->intrrx);
+ readw(&musbr->intrtx);
udelay(1000 * 1000); /* 1 sec */