Messages in this thread | | | Date | Mon, 8 Aug 2011 13:01:06 +0300 | From | Felipe Balbi <> | Subject | Re: [PATCH] usb: musb: ux500: optimize DMA callback routine |
| |
Hi,
On Mon, Aug 08, 2011 at 10:32:38AM +0200, Per Forlin wrote:
[snip]
> -/* Work function invoked from DMA callback to handle rx transfers. */ > -static void ux500_rx_work(struct work_struct *data) > +void ux500_dma_callback(void *private_data) > { > - struct ux500_dma_channel *ux500_channel = container_of(data, > - struct ux500_dma_channel, channel_work); > + struct dma_channel *channel = (struct dma_channel *)private_data;
you don't need to explicitly cast a void pointer, please remove that.
-- balbi [unhandled content-type:application/pgp-signature] | |