spi/amba-pl022: work in polling or interrupt mode if pl022_dma_probe fails
authorViresh Kumar <viresh.kumar@st.com>
Mon, 16 May 2011 04:10:10 +0000 (09:40 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:43:07 +0000 (00:43 -0600)
commit43c640157d4366a3ea9ba01f903ea892f46376ee
tree810fde5e02141f59575305e3fa1606b0a57e6d5f
parentc6e7b8cb11632a3b3968c6f64e179c7619eb70c0
spi/amba-pl022: work in polling or interrupt mode if pl022_dma_probe fails

If pl022_dma_probe fails, we can try to transfer data in polling or interrupt
mode. Also, set platform_info->enable_dma to 0, so that no other code tries to
use dma.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/amba-pl022.c