X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Ffiles-4.9%2Fdrivers%2Fmmc%2Fhost%2Fmtk-mmc%2Fsd.c;h=3a146f646cafd58be9e2a857464f9441ff948f61;hp=ebfdc065c1accf69d6ecc33655c75d64879fcde7;hb=f27336e11571a609a11bffad3eca0d7ac63135de;hpb=1c37cbbbecacbcd624f67ee7c18d76dcb478ba21 diff --git a/target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c index ebfdc065c1..3a146f646c 100644 --- a/target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c +++ b/target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c @@ -2821,6 +2821,7 @@ static int msdc_drv_probe(struct platform_device *pdev) host->dma.used_gpd = 0; host->dma.used_bd = 0; + mmc_dev(mmc)->dma_mask = NULL; /* using dma_alloc_coherent*/ /* todo: using 1, for all 4 slots */ host->dma.gpd = dma_alloc_coherent(NULL, MAX_GPD_NUM * sizeof(gpd_t), &host->dma.gpd_addr, GFP_KERNEL);