From f641fc62d89040d72c7908dcf0985f571ddb0531 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 29 Jun 2010 19:24:39 +0000 Subject: [PATCH] as3525v2-usb: fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27181 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/usb-drv-as3525v2.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c index 066232e9a1..e324a168ac 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525v2.c +++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c @@ -197,19 +197,6 @@ static void flush_tx_fifos(int nums) udelay(1); } -static void flush_rx_fifos(void) -{ - unsigned int i = 0; - - GRSTCTL = GRSTCTL_rxfflsh_flush; - while(GRSTCTL & GRSTCTL_rxfflsh_flush && i < 0x300) - i++; - if(GRSTCTL & GRSTCTL_rxfflsh_flush) - panicf("usb-drv: hang of flush rx fifos"); - /* wait 3 phy clocks */ - udelay(1); -} - static void prepare_setup_ep0(void) { logf("usb-drv: prepare EP0"); @@ -548,7 +535,7 @@ static void handle_ep_int(int ep, bool dir_in) panicf("usb-drv: setup not on EP0, this is impossible"); if((DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits) != 0) { - logf("usb-drv: ignore spurious setup (xfersize=%d)", DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits); + logf("usb-drv: ignore spurious setup (xfersize=%ld)", DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits); } else {