dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 21 Jun 2016 17:12:39 +0000 (18:12 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 28 Jun 2016 14:39:54 +0000 (20:09 +0530)
The omap_dmaxbar_init() function is not exported or declared outside
the driver, so make it static to fix the following sparse warning:

drivers/dma/ti-dma-crossbar.c:455:5: warning: symbol 'omap_dmaxbar_init' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ti-dma-crossbar.c

index e107779..5ae294b 100644 (file)
@@ -452,7 +452,7 @@ static struct platform_driver ti_dma_xbar_driver = {
        .probe  = ti_dma_xbar_probe,
 };
 
-int omap_dmaxbar_init(void)
+static int omap_dmaxbar_init(void)
 {
        return platform_driver_register(&ti_dma_xbar_driver);
 }