]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/bridge: sii9234: silence warning about regulators during deferred probe
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 26 Feb 2020 10:13:07 +0000 (11:13 +0100)
committerAndrzej Hajda <a.hajda@samsung.com>
Fri, 27 Mar 2020 07:39:55 +0000 (08:39 +0100)
Don't confuse user with meaningless warning about failure in getting
regulators in case of deferred probe.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200226101307.16708-1-m.szyprowski@samsung.com
drivers/gpu/drm/bridge/sii9234.c

index f81f81b7051f6df165de89c5df8c5583bc14982d..b1258f0ed20551b85072138bf0ad3c9cb56fd3bc 100644 (file)
@@ -836,7 +836,8 @@ static int sii9234_init_resources(struct sii9234 *ctx,
        ctx->supplies[3].supply = "cvcc12";
        ret = devm_regulator_bulk_get(ctx->dev, 4, ctx->supplies);
        if (ret) {
-               dev_err(ctx->dev, "regulator_bulk failed\n");
+               if (ret != -EPROBE_DEFER)
+                       dev_err(ctx->dev, "regulator_bulk failed\n");
                return ret;
        }