]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: exynos_dw_mmc: Use dev->name as driver's displayed name
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:40 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
Reduce U-Boot footprint by reusing dev->name as a driver's displayed
name. This changes boot device name (and "mmc info" output) from "EXYNOS
DWMMC" to something like "mmc@12100000".

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/exynos_dw_mmc.c

index 43111b749a6b3b4fc3c0e32feb8533f98895c932..a9e240fd91d6fe5cb7bf903ace2f28b33aca9e55 100644 (file)
@@ -327,7 +327,7 @@ static int exynos_dwmmc_probe(struct udevice *dev)
                       "continue anyway\n", host->dev_index, err);
        }
 
-       host->name = "EXYNOS DWMMC";
+       host->name = dev->name;
        host->board_init = exynos_dwmci_board_init;
        host->caps = MMC_MODE_DDR_52MHz;
        host->clksel = exynos_dwmci_clksel;