mmc: atmel-mci: don't use dma features when using DMA with no chan available
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 9 Feb 2012 15:33:53 +0000 (16:33 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 2 Mar 2012 21:06:40 +0000 (16:06 -0500)
commitef8781989a1bcd05aa47e853917c37df44917194
tree1f888b6847938ab17be3481c813e1da60c66f34b
parent2273d5ccb882106a74c7b780a6bfa16fb210cd24
mmc: atmel-mci: don't use dma features when using DMA with no chan available

Some callbacks are set too early -- i.e. we can have dma capabilities but
we can't get a dma channel. So wait to get the dma channel before setting
callbacks and change logs consequently.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
[Should be applied to 3.2-stable.]
Cc: <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c