dmaengine i.MX SDMA: reserve channel 0 by not registering it
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 31 Jan 2011 09:56:58 +0000 (10:56 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 31 Jan 2011 11:34:31 +0000 (12:34 +0100)
commit23889c6352ab4a842a30221bb412ff49954b2fb3
tree1a8c6fbd0509c6dbed9702c9ab0314a8c911de22
parent7214a8b14f63a1603401124bc150e17b145aa476
dmaengine i.MX SDMA: reserve channel 0 by not registering it

We need channel 0 of the sdma engine for internal purposes. We
accomplished this by calling dma_request_channel() in the probe
function. This does not work when multiple dma engines are
present which is the case when IPU support for i.MX31/35 is
compiled in. So instead of registering channel 0 and reserving
it afterwards simply do not register it in the first place.
With this the dmaengine channel counting does not match sdma
channel counting anymore, so we have to use sdma channel counting
in the driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/dma/imx-sdma.c