aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/of_mmc_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/of_mmc_spi.c b/drivers/mmc/host/of_mmc_spi.c
index 1534b582c419..d720b5e05b9c 100644
--- a/drivers/mmc/host/of_mmc_spi.c
+++ b/drivers/mmc/host/of_mmc_spi.c
@@ -146,7 +146,7 @@ struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi)
146 oms->pdata.get_ro = of_mmc_spi_get_ro; 146 oms->pdata.get_ro = of_mmc_spi_get_ro;
147 147
148 oms->detect_irq = irq_of_parse_and_map(np, 0); 148 oms->detect_irq = irq_of_parse_and_map(np, 0);
149 if (oms->detect_irq != NO_IRQ) { 149 if (oms->detect_irq != 0) {
150 oms->pdata.init = of_mmc_spi_init; 150 oms->pdata.init = of_mmc_spi_init;
151 oms->pdata.exit = of_mmc_spi_exit; 151 oms->pdata.exit = of_mmc_spi_exit;
152 } else { 152 } else {