diff options
author | Wolfgang Denk <wd@pollux.(none)> | 2005-08-02 17:06:17 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.(none)> | 2005-08-02 17:06:17 +0200 |
commit | 095b8a3798f1c6cd618092899e783dc2ee0d23f5 (patch) | |
tree | 397887e662586728029560b27873451b4547c430 /cpu | |
parent | 797638f9ff2dc8e57f7bf57bfaa83d60e0784ea0 (diff) | |
download | u-boot-midas-095b8a3798f1c6cd618092899e783dc2ee0d23f5.tar.gz u-boot-midas-095b8a3798f1c6cd618092899e783dc2ee0d23f5.tar.bz2 u-boot-midas-095b8a3798f1c6cd618092899e783dc2ee0d23f5.zip |
Coding style cleanup
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm920t/s3c24x0/usb_ohci.c | 6 | ||||
-rw-r--r-- | cpu/mpc5xxx/usb_ohci.c | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/cpu/arm920t/s3c24x0/usb_ohci.c b/cpu/arm920t/s3c24x0/usb_ohci.c index fa6abeb546..b4cc74476b 100644 --- a/cpu/arm920t/s3c24x0/usb_ohci.c +++ b/cpu/arm920t/s3c24x0/usb_ohci.c @@ -1220,8 +1220,6 @@ pkt_print(dev, pipe, buffer, transfer_len, cmd, "SUB(rh)", usb_pipein(pipe)); return stat; } - - /*-------------------------------------------------------------------------*/ /* common code for handling submit messages - used for all but root hub */ @@ -1294,7 +1292,7 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer, wait_ms(1); if (!urb_finished) dbg("\%"); - + } else { err("CTL:TIMEOUT "); dbg("submit_common_msg: TO status %x\n", stat); @@ -1511,7 +1509,7 @@ hc_interrupt (void) ohci->disabled++; err ("%s device removed!", ohci->slot_name); return -1; - + } else if ((ints &= readl (®s->intrenable)) == 0) { dbg("hc_interrupt: returning..\n"); return 0xff; diff --git a/cpu/mpc5xxx/usb_ohci.c b/cpu/mpc5xxx/usb_ohci.c index 2f19d7e922..c774da36d1 100644 --- a/cpu/mpc5xxx/usb_ohci.c +++ b/cpu/mpc5xxx/usb_ohci.c @@ -1261,7 +1261,7 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer, stat = USB_ST_CRC_ERR; break; } - + /* NOTE: since we are not interrupt driven in U-Boot and always * handle only one URB at a time, we cannot assume the * transaction finished on the first successful return from @@ -1483,7 +1483,7 @@ hc_interrupt (void) struct ohci_regs *regs = ohci->regs; int ints; int stat = -1; - + if ((ohci->hcca->done_head != 0) && !(ohci_cpu_to_le32(ohci->hcca->done_head) & 0x01)) { @@ -1493,7 +1493,7 @@ hc_interrupt (void) ohci->disabled++; err ("%s device removed!", ohci->slot_name); return -1; - + } else if ((ints &= readl (®s->intrenable)) == 0) { dbg("hc_interrupt: returning..\n"); return 0xff; |