From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: [PATCH 3/3] drm/panfrost: Reduce the amount of logs on deferred probe Date: Tue, 18 Jun 2019 20:55:02 +0200 Message-ID: <20190618185502.3839-3-krzk@kernel.org> References: <20190618185502.3839-1-krzk@kernel.org> Return-path: In-Reply-To: <20190618185502.3839-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org To: Qiang Yu , David Airlie , Daniel Vetter , Rob Herring , Tomeu Vizoso , dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski List-Id: dri-devel@lists.freedesktop.org There is no point to print deferred probe (and its failures to get resources) as an error. In case of multiple probe tries this would pollute the dmesg. Signed-off-by: Krzysztof Kozlowski --- drivers/gpu/drm/panfrost/panfrost_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index ccb8eb2a518c..858582a60090 100644 --- a/drivers/gpu/drm/panfrost/panfrost_device.c +++ b/drivers/gpu/drm/panfrost/panfrost_device.c @@ -95,7 +95,9 @@ static int panfrost_regulator_init(struct panfrost_device *pfdev) pfdev->regulator = NULL; if (ret == -ENODEV) return 0; - dev_err(pfdev->dev, "failed to get regulator: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(pfdev->dev, "failed to get regulator: %d\n", + ret); return ret; } -- 2.17.1