summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2015-11-10 18:29:01 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 11:02:21 -0600
commit56e71023320d5a188ea06192cba8060e83adbb3f (patch)
tree89e7d925c63e0d616be472239bf1065369f6a14a /drivers/dma
parent0bd062359d1067cb97c3a85ba2aedf6f375e0c1e (diff)
MLK-11848-2 dma: imx-sdma: add __init for probe()
Fix buiding error with GCC 4.6.2: WARNING: drivers/dma/built-in.o(.text+0xefac): Section mismatch in reference from the function sdma_probe() to the function .init.text:sdma_event_remap.isra.21() The function sdma_probe() references the function __init sdma_event_remap.isra.21(). This is often because sdma_probe lacks a __init annotation or the annotation of sdma_event_remap.isra.21 is wrong. Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/imx-sdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index aed5b79f16c9..fa60b6a27b0c 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -2105,7 +2105,7 @@ static struct dma_chan *sdma_xlate(struct of_phandle_args *dma_spec,
return dma_request_channel(mask, sdma_filter_fn, &data);
}
-static int sdma_probe(struct platform_device *pdev)
+static int __init sdma_probe(struct platform_device *pdev)
{
const struct of_device_id *of_id =
of_match_device(sdma_dt_ids, &pdev->dev);