Skip to content

Commit

Permalink
ARM i.MX DMA: return gracefully on different socs
Browse files Browse the repository at this point in the history
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: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Sascha Hauer committed Nov 24, 2010
1 parent ec4bb25 commit 8bffb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/dma-v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static int __init imx_dma_init(void)
imx_dmav1_baseaddr = MX27_IO_ADDRESS(MX27_DMA_BASE_ADDR);
else
#endif
BUG();
return 0;

dma_clk = clk_get(NULL, "dma");
clk_enable(dma_clk);
Expand Down

0 comments on commit 8bffb77

Please sign in to comment.