spi: s3c64xx: add missing check for polling mode
authorGirish K S <girishks2000@gmail.com>
Thu, 27 Jun 2013 06:56:53 +0000 (12:26 +0530)
committerMark Brown <broonie@linaro.org>
Tue, 2 Jul 2013 18:02:14 +0000 (19:02 +0100)
commitd96760f98e8eb9d35a2eace586d8b93b0e58cbd5
treea37e9bbb4340fcfce8a8d523706d72d743f17678
parented893559c9799df3b32051871c22017151394d82
spi: s3c64xx: add missing check for polling mode

After the patch "spi/s3c64xx: Fix non-dmaengine usage"
with commit id 563b444e33810f3120838620c990480304e24e63
submitted by Mark Brown, the spi device detection in polling
mode breaks. This revealed the missing check for polling during
dma prepare. This patch adds the missing check.

Signed-off-by: Girish K S <ks.giri@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c