Commit 8bffb77e authored by Sascha Hauer's avatar Sascha Hauer

ARM i.MX DMA: return gracefully on different socs

Code called from an initcall can be maybe called for
machines it's not intended for. So check for valid
machines and return gracefully if an incompatible machine
is found.
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent ec4bb253
...@@ -818,7 +818,7 @@ static int __init imx_dma_init(void) ...@@ -818,7 +818,7 @@ static int __init imx_dma_init(void)
imx_dmav1_baseaddr = MX27_IO_ADDRESS(MX27_DMA_BASE_ADDR); imx_dmav1_baseaddr = MX27_IO_ADDRESS(MX27_DMA_BASE_ADDR);
else else
#endif #endif
BUG(); return 0;
dma_clk = clk_get(NULL, "dma"); dma_clk = clk_get(NULL, "dma");
clk_enable(dma_clk); clk_enable(dma_clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment