if (dma) {
struct dma_controller *c;
u16 rx_count;
- int status;
+ int ret;
rx_count = musb_readw(epio, MUSB_RXCOUNT);
* 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
? rx_count
: urb->transfer_buffer_length);
- if (!status) {
+ if (!ret) {
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;
- u8 *mbase = controller->pCoreBase;
+ void __iomem *mbase = controller->pCoreBase;
u8 bChannel = pImplChannel->bIndex;
u16 csr = 0;
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) {
(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;