Skip to contentSkip to conversation

mmc: davinci: suppress error message on EPROBE_DEFER

PATCH Applied David Lechner 2 participants 2 messages Jan 21, 2018 – Jan 22, 2018 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: davinci: suppress error message on EPROBE_DEFER

This suppresses printing an error message during probe of the TI DaVinci MMC driver when the error is EPROBE_DEFER.

---
 drivers/mmc/host/davinci_mmc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/mmc/host/davinci_mmc.c +3 -2
index c5309cc..8e36317 100644
@@ -1253,8 +1253,9 @@ static int davinci_mmcsd_probe(struct platform_device *pdev)
 		pdev->id_entry = match->data;
 		ret = mmc_of_parse(mmc);
 		if (ret) {
-			dev_err(&pdev->dev,
-				"could not parse of data: %d\n", ret);
+			if (ret != -EPROBE_DEFER)
+				dev_err(&pdev->dev,
+					"could not parse of data: %d\n", ret);
 			goto parse_fail;
 		}
 	} else {
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 5 lines · David Lechner

This suppresses printing an error message during probe of the TI DaVinci MMC driver when the error is EPROBE_DEFER.

Thanks, applied for next!

Kind regards
Uffe

Quoted 23 lines
---
 drivers/mmc/host/davinci_mmc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/mmc/host/davinci_mmc.c +3 -3
index c5309cc..8e36317 100644
@@ -1253,8 +1253,9 @@ static int davinci_mmcsd_probe(struct platform_device *pdev)
                pdev->id_entry = match->data;
                ret = mmc_of_parse(mmc);
                if (ret) {
-                       dev_err(&pdev->dev,
-                               "could not parse of data: %d\n", ret);
+                       if (ret != -EPROBE_DEFER)
+                               dev_err(&pdev->dev,
+                                       "could not parse of data: %d\n", ret);
                        goto parse_fail;
                }
        } else {
--

2.7.4