mmc: meson-mx-sdhc: Fix error check for dma_map_sg
authorJack Wang <jinpu.wang@ionos.com>
Thu, 25 Aug 2022 07:40:07 +0000 (09:40 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 Sep 2022 09:53:47 +0000 (11:53 +0200)
commitf7865ad8b4003ec75faf4a69363a804851b68c7d
treef6d8eb82e5d780cfce418af826f4e9e3cf0629a3
parent5cbedf52608cc3cbc1c2a9a861fb671620427a20
mmc: meson-mx-sdhc: Fix error check for dma_map_sg

dma_map_sg return 0 on error, also change the type for dma_len
from int to unsigned int.

Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20220825074008.33349-2-jinpu.wang@ionos.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-mx-sdhc-mmc.c