Get rid of some sparse warnings in musb_hdrc driver. Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx> --- drivers/usb/musb/musb_host.c | 6 +++--- drivers/usb/musb/musbhsdma.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index f9e98d0..64673b7 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -1541,7 +1541,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) if (dma) { struct dma_controller *c; u16 rx_count; - int status; + int ret; rx_count = musb_readw(epio, MUSB_RXCOUNT); @@ -1600,7 +1600,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) * transfer_buffer_length needs to be * adjusted first... */ - status = c->channel_program( + ret = c->channel_program( dma, qh->maxpacket, dma->desired_mode, urb->transfer_dma @@ -1609,7 +1609,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) ? rx_count : urb->transfer_buffer_length); - if (!status) { + if (!ret) { c->channel_release(dma); dma = hw_ep->rx_channel = NULL; /* REVISIT reset CSR */ diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index 75f084f..32bb1e2 100644 --- a/drivers/usb/musb/musbhsdma.c +++ b/drivers/usb/musb/musbhsdma.c @@ -172,7 +172,7 @@ static void configure_channel(struct dma_channel *pChannel, struct musb_dma_channel *pImplChannel = (struct musb_dma_channel *) pChannel->private_data; struct musb_dma_controller *controller = pImplChannel->controller; - u8 *mbase = controller->pCoreBase; + void __iomem *mbase = controller->pCoreBase; u8 bChannel = pImplChannel->bIndex; u16 csr = 0; @@ -250,7 +250,7 @@ static int dma_channel_abort(struct dma_channel *pChannel) struct musb_dma_channel *pImplChannel = (struct musb_dma_channel *) pChannel->private_data; u8 bChannel = pImplChannel->bIndex; - u8 *mbase = pImplChannel->controller->pCoreBase; + void __iomem *mbase = pImplChannel->controller->pCoreBase; u16 csr; if (pChannel->status == MUSB_DMA_STATUS_BUSY) { @@ -296,7 +296,7 @@ static irqreturn_t dma_controller_irq(int irq, void *private_data) (struct musb_dma_controller *)private_data; struct musb_dma_channel *pImplChannel; struct musb *musb = controller->pDmaPrivate; - u8 *mbase = controller->pCoreBase; + void __iomem *mbase = controller->pCoreBase; struct dma_channel *pChannel; u8 bChannel; u16 csr; -- 1.5.5.23.g2a5fe -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html