fix pio complie warning
authorlintao <lintao@rock-chips.com>
Wed, 8 Oct 2014 00:20:33 +0000 (08:20 +0800)
committerlintao <lintao@rock-chips.com>
Wed, 8 Oct 2014 00:22:02 +0000 (08:22 +0800)
drivers/mmc/host/rk_sdmmc.c

index 4d3cf7c6786204e9465d0da9db12af41671a887a..537ae42067bc18b98340ff31f6268c67d6a8285b 100755 (executable)
@@ -2961,7 +2961,7 @@ static void dw_mci_work_routine_card(struct work_struct *work)
 
                 /* Stop edma when rountine card triggered */
                 if(cpu_is_rk3036() || cpu_is_rk312x())
-                       if(host->dma_ops->stop)
+                       if(host->dma_ops && host->dma_ops->stop)
                                host->dma_ops->stop(host);
 
                while (present != slot->last_detect_state) {