aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/mxsmmc.c
diff options
context:
space:
mode:
authorWalter Lozano <walter.lozano@collabora.com>2020-07-23 00:22:04 -0300
committerSimon Glass <sjg@chromium.org>2020-07-28 19:30:39 -0600
commitdf17cdc9cf36c43b7ba6a9f2acdc3ba5d9040334 (patch)
treeaedd6231fa6cec0d0dd3521525cab0cc060f506e /drivers/mmc/mxsmmc.c
parentdcb3ed642bce02ea9d7d7ef8a0a6f656f4fc4f2a (diff)
downloadu-boot-df17cdc9cf36c43b7ba6a9f2acdc3ba5d9040334.zip
u-boot-df17cdc9cf36c43b7ba6a9f2acdc3ba5d9040334.tar.gz
u-boot-df17cdc9cf36c43b7ba6a9f2acdc3ba5d9040334.tar.bz2
drivers: avoid using aliases on drivers when OF_PLATDATA is enabled
After latest improvements on OF_PLATDATA struct names are generated based on driver name instead of compatible strings. With this in mind, using aliases in drivers are not longer needed. This patch removes code that tried to handle these kind of aliases to improve readability. Signed-off-by: Walter Lozano <walter.lozano@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/mxsmmc.c')
-rw-r--r--drivers/mmc/mxsmmc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c
index d48050b..2b3a3a9 100644
--- a/drivers/mmc/mxsmmc.c
+++ b/drivers/mmc/mxsmmc.c
@@ -52,15 +52,9 @@ struct mxsmmc_priv {
#include <dm/read.h>
#include <dt-structs.h>
-#ifdef CONFIG_MX28
-#define dtd_fsl_imx_mmc dtd_fsl_imx28_mmc
-#else /* CONFIG_MX23 */
-#define dtd_fsl_imx_mmc dtd_fsl_imx23_mmc
-#endif
-
struct mxsmmc_platdata {
#if CONFIG_IS_ENABLED(OF_PLATDATA)
- struct dtd_fsl_imx_mmc dtplat;
+ struct dtd_fsl_imx23_mmc dtplat;
#endif
struct mmc_config cfg;
struct mmc mmc;
@@ -582,7 +576,7 @@ static int mxsmmc_probe(struct udevice *dev)
debug("%s: probe\n", __func__);
#if CONFIG_IS_ENABLED(OF_PLATDATA)
- struct dtd_fsl_imx_mmc *dtplat = &plat->dtplat;
+ struct dtd_fsl_imx23_mmc *dtplat = &plat->dtplat;
struct phandle_1_arg *p1a = &dtplat->clocks[0];
priv->buswidth = dtplat->bus_width;