From: Ben Dooks Date: Tue, 21 Jun 2016 17:12:39 +0000 (+0100) Subject: dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d646162b8b74b10aeb2451762065904201859bd2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/ti-dma-crossbar.c b/drivers/dma/ti-dma-crossbar.c index e107779b1a2e..5ae294b256a7 100644 --- a/drivers/dma/ti-dma-crossbar.c +++ b/drivers/dma/ti-dma-crossbar.c @@ -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); }