X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=drivers%2Fmmc%2Fhost%2Fbcm2835.c;fp=drivers%2Fmmc%2Fhost%2Fbcm2835.c;h=ab8d58a60352008f4fa71fa3378794bcf836ad58;hp=c9e7aa50bb0ab5d05884d8ebfe6ef740adeda150;hb=e5c1e63c932379b89d7404d4e5fde1bf8abff951;hpb=a6327b5e57fdc679c842588c3be046c0b39cc127 diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index c9e7aa50bb0a..ab8d58a60352 100644 --- a/drivers/mmc/host/bcm2835.c +++ b/drivers/mmc/host/bcm2835.c @@ -1286,7 +1286,7 @@ static int bcm2835_add_host(struct bcm2835_host *host) spin_lock_init(&host->lock); mutex_init(&host->mutex); - if (IS_ERR_OR_NULL(host->dma_chan_rxtx)) { + if (!host->dma_chan_rxtx) { dev_warn(dev, "unable to initialise DMA channel. Falling back to PIO\n"); host->use_dma = false; } else {