]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmci: Drop unnecessary clear of variant->qcom_dml flag
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 6 Mar 2019 14:04:52 +0000 (15:04 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 15 Apr 2019 09:55:54 +0000 (11:55 +0200)
commit66eeca93b17dd6161a971c5e82528636b8ea730c
treea1aeac561c45693e541e932c0bdc98e8c72595fb
parentbc105747f9a054de00ad0c5a6c3c1103477bee17
mmc: mmci: Drop unnecessary clear of variant->qcom_dml flag

There's no point clearing the variant flag in case the qcom variant fails
to setup DMA. This is because if mmci_dma_setup() fails, then the use_dma
flag remains set to false, which leads to mmci using PIO mode and not DMA.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mmc/host/mmci_qcom_dml.c