usb: musb: ux500_dma: fix sparse warning
authorFelipe Balbi <balbi@ti.com>
Fri, 22 Mar 2013 15:03:32 +0000 (17:03 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 27 Mar 2013 11:19:00 +0000 (13:19 +0200)
fix the following sparse warning:

drivers/usb/musb/ux500_dma.c:60:6: warning: symbol 'ux500_dma_callback' was not declared. Should it be static?

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/ux500_dma.c

index 2df9b7d1ddc6da6b71a8d20d4ecd7842c36ce525..f417b7e49bb59a2ae6d940ea296314d0a9508774 100644 (file)
@@ -57,7 +57,7 @@ struct ux500_dma_controller {
 };
 
 /* Work function invoked from DMA callback to handle rx transfers. */
-void ux500_dma_callback(void *private_data)
+static void ux500_dma_callback(void *private_data)
 {
        struct dma_channel *channel = private_data;
        struct ux500_dma_channel *ux500_channel = channel->private_data;