aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-01-21 14:28:13 -0600
committerUlf Hansson <ulf.hansson@linaro.org>2018-01-22 08:21:56 +0100
commitf9de65fc61b51398cafb2e4db5cc787704fc49a1 (patch)
tree8ed61d2ab1a040abd23478c3cfb5eece14383d65 /drivers/mmc
parentmmc: davinci: dont' use module_platform_driver_probe() (diff)
downloadlinux-dev-f9de65fc61b51398cafb2e4db5cc787704fc49a1.tar.xz
linux-dev-f9de65fc61b51398cafb2e4db5cc787704fc49a1.zip
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. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/davinci_mmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index c5309ccf502e..8e363174f9d6 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -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 {