Skip to contentSkip to conversation

mmc: Drop unnecessary case for mmc_probe()

PATCH New Faiz Abbas 2 participants 3 messages Feb 12, 2018 – Feb 23, 2018 MMC, SD and SDIO

lore
Share & tools
lore

Faiz Abbas

author
#0 lore raw

PATCH 1/1 mmc: Drop unnecessary case for mmc_probe()

Drop the unnecessary empty function case for mmc_probe().

---
 drivers/mmc/mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/mmc/mmc.c +1 -6
index 255310a..e0b9a42 100644
@@ -2657,12 +2657,7 @@ void mmc_set_preinit(struct mmc *mmc, int preinit)
 	mmc->preinit = preinit;
 }
 
-#if CONFIG_IS_ENABLED(DM_MMC) && defined(CONFIG_SPL_BUILD)
-static int mmc_probe(bd_t *bis)
-{
-	return 0;
-}
-#elif CONFIG_IS_ENABLED(DM_MMC)
+#if CONFIG_IS_ENABLED(DM_MMC)
 static int mmc_probe(bd_t *bis)
 {
 	int ret, i;
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/1 mmc: Drop unnecessary case for mmc_probe()

Hi,

Quoted 16 lines · Faiz Abbas

Drop the unnecessary empty function case for mmc_probe().

---
 drivers/mmc/mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/mmc/mmc.c +0 -0
index 255310a..e0b9a42 100644
@@ -2657,12 +2657,7 @@ void mmc_set_preinit(struct mmc *mmc, int preinit)
 	mmc->preinit = preinit;
 }
 

drivers/mmc/mmc.c void mmc_set_preinit(struct mmc *mmc, int preinit) · line 2663

Quoted 10 lines
drivers/mmc/mmc.c +1 -6
-#if CONFIG_IS_ENABLED(DM_MMC) && defined(CONFIG_SPL_BUILD)
-static int mmc_probe(bd_t *bis)
-{
-	return 0;
-}
-#elif CONFIG_IS_ENABLED(DM_MMC)
+#if CONFIG_IS_ENABLED(DM_MMC)
 static int mmc_probe(bd_t *bis)
 {
 	int ret, i;

Gentle ping.

Thanks,
Faiz

#2 lore raw

PATCH 1/1 mmc: Drop unnecessary case for mmc_probe()

Quoted 6 lines · Faiz Abbas

Hi,

Quoted 3 lines · Faiz Abbas

Drop the unnecessary empty function case for mmc_probe().

Applied to u-boot-mmc.

Best Regards,
Jaehoon Chung

Quoted 31 lines
Quoted 13 lines
---
 drivers/mmc/mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/mmc/mmc.c +0 -0
index 255310a..e0b9a42 100644
@@ -2657,12 +2657,7 @@ void mmc_set_preinit(struct mmc *mmc, int preinit)
 	mmc->preinit = preinit;
 }
 

drivers/mmc/mmc.c void mmc_set_preinit(struct mmc *mmc, int preinit) · line 2663

Quoted 10 lines
drivers/mmc/mmc.c +1 -6
-#if CONFIG_IS_ENABLED(DM_MMC) && defined(CONFIG_SPL_BUILD)
-static int mmc_probe(bd_t *bis)
-{
-	return 0;
-}
-#elif CONFIG_IS_ENABLED(DM_MMC)
+#if CONFIG_IS_ENABLED(DM_MMC)
 static int mmc_probe(bd_t *bis)
 {
 	int ret, i;

Gentle ping.

Thanks,
Faiz