MLK-11876 dma: imx-sdma: fix 'section mismatch'
authorRobin Gong <b38343@freescale.com>
Thu, 19 Nov 2015 03:07:50 +0000 (11:07 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:14 +0000 (14:49 -0500)
The commit '39c6663 MLK-11848-2 dma: imx-sdma: add __init for probe()' is
not correct, fix it totally.

Signed-off-by: Robin Gong <b38343@freescale.com>
drivers/dma/imx-sdma.c

index 2caf992..2d3098e 100644 (file)
@@ -1953,7 +1953,7 @@ static struct dma_chan *sdma_xlate(struct of_phandle_args *dma_spec,
        return dma_request_channel(mask, sdma_filter_fn, &data);
 }
 
-static int __init sdma_probe(struct platform_device *pdev)
+static int sdma_probe(struct platform_device *pdev)
 {
        const struct of_device_id *of_id =
                        of_match_device(sdma_dt_ids, &pdev->dev);