git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[pandora-kernel.git]
/
drivers
/
usb
/
renesas_usbhs
/
fifo.c
diff --git
a/drivers/usb/renesas_usbhs/fifo.c
b/drivers/usb/renesas_usbhs/fifo.c
index
8da685e
..
ffdf5d1
100644
(file)
--- a/
drivers/usb/renesas_usbhs/fifo.c
+++ b/
drivers/usb/renesas_usbhs/fifo.c
@@
-820,7
+820,7
@@
static int usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done)
if (len % 4) /* 32bit alignment */
goto usbhsf_pio_prepare_push;
if (len % 4) /* 32bit alignment */
goto usbhsf_pio_prepare_push;
- if ((
*(u32 *)
pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
+ if ((
uintptr_t)(
pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
goto usbhsf_pio_prepare_push;
/* get enable DMA fifo */
goto usbhsf_pio_prepare_push;
/* get enable DMA fifo */
@@
-897,7
+897,7
@@
static int usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done)
if (!fifo)
goto usbhsf_pio_prepare_pop;
if (!fifo)
goto usbhsf_pio_prepare_pop;
- if ((
*(u32 *)
pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
+ if ((
uintptr_t)(
pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
goto usbhsf_pio_prepare_pop;
ret = usbhsf_fifo_select(pipe, fifo, 0);
goto usbhsf_pio_prepare_pop;
ret = usbhsf_fifo_select(pipe, fifo, 0);