From: Andy Shevchenko Date: Fri, 12 Sep 2014 12:11:58 +0000 (+0300) Subject: spi: dw-mid: check that DMA was inited before exit X-Git-Tag: fixes-for-v3.18-merge-window~30^2~3^4~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb57862ead652454ceeb659617404c5f13bc34b5;p=pandora-kernel.git spi: dw-mid: check that DMA was inited before exit If the driver was compiled with DMA support, but DMA channels weren't acquired by some reason, mid_spi_dma_exit() will crash the kernel. Fixes: 7063c0d942a1 (spi/dw_spi: add DMA support) Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- Reading git-diff-tree failed