Get rid of some sparse warnings in musb_hdrc driver.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
if (dma) {
struct dma_controller *c;
u16 rx_count;
if (dma) {
struct dma_controller *c;
u16 rx_count;
rx_count = musb_readw(epio, MUSB_RXCOUNT);
rx_count = musb_readw(epio, MUSB_RXCOUNT);
* transfer_buffer_length needs to be
* adjusted first...
*/
* 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
dma, qh->maxpacket,
dma->desired_mode,
urb->transfer_dma
? rx_count
: urb->transfer_buffer_length);
? rx_count
: urb->transfer_buffer_length);
c->channel_release(dma);
dma = hw_ep->rx_channel = NULL;
/* REVISIT reset CSR */
c->channel_release(dma);
dma = hw_ep->rx_channel = NULL;
/* REVISIT reset CSR */
struct musb_dma_channel *pImplChannel =
(struct musb_dma_channel *) pChannel->private_data;
struct musb_dma_controller *controller = pImplChannel->controller;
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;
u8 bChannel = pImplChannel->bIndex;
u16 csr = 0;
struct musb_dma_channel *pImplChannel =
(struct musb_dma_channel *) pChannel->private_data;
u8 bChannel = pImplChannel->bIndex;
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) {
u16 csr;
if (pChannel->status == MUSB_DMA_STATUS_BUSY) {
(struct musb_dma_controller *)private_data;
struct musb_dma_channel *pImplChannel;
struct musb *musb = controller->pDmaPrivate;
(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;
struct dma_channel *pChannel;
u8 bChannel;
u16 csr;