9
0
Fork 0

fsl_udc: fix warning

this patch fix the following warning :
drivers/usb/gadget/fsl_udc.c: In function 'done':
drivers/usb/gadget/fsl_udc.c:566: warning: passing argument 1 of 'dma_inv_range' makes integer from pointer without a cast
arch/arm/include/asm/mmu.h:24: note: expected 'long unsigned int' but argument is of type 'void *'
drivers/usb/gadget/fsl_udc.c:566: warning: passing argument 2 of 'dma_inv_range' makes integer from pointer without a cast
arch/arm/include/asm/mmu.h:24: note: expected 'long unsigned int' but argument is of type 'void *'

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2010-10-20 15:40:15 +02:00 committed by Sascha Hauer
parent 94e30f2ee3
commit a9cc5d079a
1 changed files with 2 additions and 1 deletions

View File

@ -563,7 +563,8 @@ static void done(struct fsl_ep *ep, struct fsl_req *req, int status)
dma_free_coherent(curr_td);
}
dma_inv_range(req->req.buf, req->req.buf + req->req.length);
dma_inv_range((unsigned long)req->req.buf,
(unsigned long)(req->req.buf + req->req.length));
if (status && (status != -ESHUTDOWN))
VDBG("complete %s req %p stat %d len %u/%u",