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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:25 +0000 (12:31 -0700)
commite8d7adfd8c088633fe764e1e698f277368e8c978
tree1401cdc3daeb6b81b9a099c735865af7e2a9ad83
parentac42356c793d135643350b6ea19d97250f533900
mmc: atmel-mci: don't use dma features when using DMA with no chan available

commit ef8781989a1bcd05aa47e853917c37df44917194 upstream.

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>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/atmel-mci.c