]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
USB: MUSB: sparse fixes to musb_hdrc driver
authorFelipe Balbi <felipe.balbi@nokia.com>
Fri, 11 Apr 2008 10:59:16 +0000 (13:59 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Apr 2008 19:04:44 +0000 (12:04 -0700)
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>
drivers/usb/musb/musb_host.c
drivers/usb/musb/musbhsdma.c

index f9e98d00e9464edc6236b082c3d4b0441f862f11..64673b7193714654e22bfd89866c8b4c2e0523a6 100644 (file)
@@ -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 */
index 75f084f0341c49a08180d2951d169a9c541f10c5..32bb1e2d8748566f042bf54d3cf27c55d1c275dd 100644 (file)
@@ -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;