It looks good to me. Acked-by: Jaehoon Chung <jh80.chung@xxxxxxxxxxx> On 06/15/2012 02:31 AM, Jonathan Kliegman wrote: > host->dma_ops is not valid if host->usa dma is 0 so protect > host->dma_ops reference in dw_mci_resume > > Signed-off-by: Jonathan Kliegman <kliegs@xxxxxxxxxxxx> > --- > drivers/mmc/host/dw_mmc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 1ca5e72..e2758d5 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -2175,7 +2175,7 @@ int dw_mci_resume(struct dw_mci *host) > return ret; > } > > - if (host->dma_ops->init) > + if (host->use_dma && host->dma_ops->init) > host->dma_ops->init(host); > > /* Restore the old value at FIFOTH register */ -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html