Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10444
b: refs/heads/master
c: 63a4b52
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Russell King committed Oct 28, 2005
1 parent 533f691 commit 9530360
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0e0adb96ebe6bf0b8b3fe4cd6c214b1e8964609
refs/heads/master: 63a4b52c9ddca944afc1b78aacbf641c650780d7
2 changes: 1 addition & 1 deletion trunk/drivers/usb/gadget/pxa2xx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static inline void ep0_idle (struct pxa2xx_udc *dev)
}

static int
write_packet(volatile unsigned long *uddr, struct pxa2xx_request *req, unsigned max)
write_packet(volatile u32 *uddr, struct pxa2xx_request *req, unsigned max)
{
u8 *buf;
unsigned length, count;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/usb/gadget/pxa2xx_udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ struct pxa2xx_ep {
* UDDR = UDC Endpoint Data Register (the fifo)
* DRCM = DMA Request Channel Map
*/
volatile unsigned long *reg_udccs;
volatile unsigned long *reg_ubcr;
volatile unsigned long *reg_uddr;
volatile u32 *reg_udccs;
volatile u32 *reg_ubcr;
volatile u32 *reg_uddr;
#ifdef USE_DMA
volatile unsigned long *reg_drcmr;
volatile u32 *reg_drcmr;
#define drcmr(n) .reg_drcmr = & DRCMR ## n ,
#else
#define drcmr(n)
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-arm/arch-pxa/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@

#ifndef __ASSEMBLY__

# define __REG(x) (*((volatile unsigned long *)io_p2v(x)))
# define __REG(x) (*((volatile u32 *)io_p2v(x)))

/* With indexed regs we don't want to feed the index through io_p2v()
especially if it is a variable, otherwise horrible code will result. */
# define __REG2(x,y) \
(*(volatile unsigned long *)((unsigned long)&__REG(x) + (y)))
(*(volatile u32 *)((u32)&__REG(x) + (y)))

# define __PREG(x) (io_v2p((u32)&(x)))

Expand Down

0 comments on commit 9530360

Please sign in to comment.