]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: exynos_dw_mmc: Fix obtaining the base address of controller
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:23 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
commitff2b88365d91120d63434e1b616da739066b11df
treeafb60ad8f4775691644dc475200d15971706faca
parent29b4ff362ad76947feb1506a27791a2dd975adab
mmc: exynos_dw_mmc: Fix obtaining the base address of controller

Getting the base address with outdated fdtdec_get_addr() API and further
casting it to (void *) leads to next build warning on ARM64 platforms:

    In function 'exynos_dwmci_get_config':
        warning: cast to pointer from integer of different size
        [-Wint-to-pointer-cast]
            host->ioaddr = (void *)base;

Use livetree API instead (dev_read_addr_ptr()), which handles this
correctly.

Fixes: a082a2dde061 ("EXYNOS5: DWMMC: Added FDT support for DWMMC")
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/exynos_dw_mmc.c