mmc: fsl_esdhc: drop useless fdt fixup
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 19 Dec 2019 10:59:26 +0000 (18:59 +0800)
committerPeng Fan <peng.fan@nxp.com>
Thu, 16 Jan 2020 05:16:24 +0000 (13:16 +0800)
The fdt fixup for properties "peripheral-frequency" and "adapter-type"
was once for a Freescale SDK release. The properties haven't been existed
in linux mainline. Drop these useless code.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
drivers/mmc/fsl_esdhc.c

index 1e7d606cd819c0c04bab04f2ddd66fc02b76b58b..8655503319e93ba85a6cc1709dbb8455b65ee962 100644 (file)
@@ -716,17 +716,8 @@ void fdt_fixup_esdhc(void *blob, bd_t *bd)
        if (esdhc_status_fixup(blob, compat))
                return;
 
-#ifdef CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK
-       do_fixup_by_compat_u32(blob, compat, "peripheral-frequency",
-                              gd->arch.sdhc_clk, 1);
-#else
        do_fixup_by_compat_u32(blob, compat, "clock-frequency",
                               gd->arch.sdhc_clk, 1);
-#endif
-#ifdef CONFIG_FSL_ESDHC_ADAPTER_IDENT
-       do_fixup_by_compat_u32(blob, compat, "adapter-type",
-                              (u32)(gd->arch.sdhc_adapter), 1);
-#endif
 }
 #endif