diff options
-rw-r--r-- | drivers/mmc/host/atmel-mci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 7f9d3de9f870..9268c41a8561 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c | |||
@@ -2438,7 +2438,7 @@ static int atmci_configure_dma(struct atmel_mci *host) | |||
2438 | struct mci_platform_data *pdata = host->pdev->dev.platform_data; | 2438 | struct mci_platform_data *pdata = host->pdev->dev.platform_data; |
2439 | dma_cap_mask_t mask; | 2439 | dma_cap_mask_t mask; |
2440 | 2440 | ||
2441 | if (!pdata->dma_filter) | 2441 | if (!pdata || !pdata->dma_filter) |
2442 | return -ENODEV; | 2442 | return -ENODEV; |
2443 | 2443 | ||
2444 | dma_cap_zero(mask); | 2444 | dma_cap_zero(mask); |