* [PATCH] mmc: davinci: suppress error message on EPROBE_DEFER
@ 2018-01-21 20:28 David Lechner
2018-01-22 7:27 ` Ulf Hansson
0 siblings, 1 reply; 2+ messages in thread
From: David Lechner @ 2018-01-21 20:28 UTC (permalink / raw)
To: linux-mmc; +Cc: David Lechner, linux-kernel, linux-arm-kernel, Ulf Hansson
This suppresses printing an error message during probe of the TI DaVinci
MMC driver when the error is EPROBE_DEFER.
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: David Lechner <david@lechnology.com>
---
drivers/mmc/host/davinci_mmc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index c5309cc..8e36317 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 {
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mmc: davinci: suppress error message on EPROBE_DEFER
2018-01-21 20:28 [PATCH] mmc: davinci: suppress error message on EPROBE_DEFER David Lechner
@ 2018-01-22 7:27 ` Ulf Hansson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2018-01-22 7:27 UTC (permalink / raw)
To: David Lechner
Cc: linux-mmc@vger.kernel.org, Linux Kernel Mailing List,
linux-arm-kernel
On 21 January 2018 at 21:28, David Lechner <david@lechnology.com> wrote:
> This suppresses printing an error message during probe of the TI DaVinci
> MMC driver when the error is EPROBE_DEFER.
>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Signed-off-by: David Lechner <david@lechnology.com>
Thanks, applied for next!
Kind regards
Uffe
> ---
> drivers/mmc/host/davinci_mmc.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
> index c5309cc..8e36317 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 {
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-22 7:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-21 20:28 [PATCH] mmc: davinci: suppress error message on EPROBE_DEFER David Lechner
2018-01-22 7:27 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox