summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2010-06-29 19:24:39 +0000
committerAmaury Pouly <pamaury@rockbox.org>2010-06-29 19:24:39 +0000
commitf641fc62d89040d72c7908dcf0985f571ddb0531 (patch)
tree2bbf994be806d6e77c3a447b06af01702774ab28 /firmware/target
parent23cf76c2af5ff77255a617da20002a61bae1eed8 (diff)
as3525v2-usb: fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27181 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525v2.c15
1 files changed, 1 insertions, 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
{