Message ID | 20211112191523.1943825-3-sean.anderson@seco.com |
---|---|
State | Superseded |
Delegated to: | Peng Fan |
Headers | show |
Series | fsl_esdhc_imx: port several patches from fsl_esdhc | expand |
On 11/13/21 4:15 AM, Sean Anderson wrote: > [ fsl_esdhc commit 2913926f3b3dec282f8773e3c02377c9600d8267 ] > > Remove redundant DM_MMC checking which is already in DM_MMC conditional > compile block. > > Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> > Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Best Regards, Jaehoon Chung > --- > > (no changes since v1) > > drivers/mmc/fsl_esdhc_imx.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c > index 0a7f7e61cb..40886f37aa 100644 > --- a/drivers/mmc/fsl_esdhc_imx.c > +++ b/drivers/mmc/fsl_esdhc_imx.c > @@ -1605,7 +1605,6 @@ static int fsl_esdhc_probe(struct udevice *dev) > return esdhc_init_common(priv, mmc); > } > > -#if CONFIG_IS_ENABLED(DM_MMC) > static int fsl_esdhc_get_cd(struct udevice *dev) > { > struct fsl_esdhc_priv *priv = dev_get_priv(dev); > @@ -1671,7 +1670,6 @@ static const struct dm_mmc_ops fsl_esdhc_ops = { > #endif > .wait_dat0 = fsl_esdhc_wait_dat0, > }; > -#endif > > static struct esdhc_soc_data usdhc_imx7d_data = { > .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING >
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 0a7f7e61cb..40886f37aa 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -1605,7 +1605,6 @@ static int fsl_esdhc_probe(struct udevice *dev) return esdhc_init_common(priv, mmc); } -#if CONFIG_IS_ENABLED(DM_MMC) static int fsl_esdhc_get_cd(struct udevice *dev) { struct fsl_esdhc_priv *priv = dev_get_priv(dev); @@ -1671,7 +1670,6 @@ static const struct dm_mmc_ops fsl_esdhc_ops = { #endif .wait_dat0 = fsl_esdhc_wait_dat0, }; -#endif static struct esdhc_soc_data usdhc_imx7d_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING