diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-04-27 09:48:31 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-05-26 10:51:20 +0100 |
commit | 7ff864e1ad343dc0960f454a58af48883c5f0f5d (patch) | |
tree | f897703069ceab6c0d733a976f4ef7b0f23d9e75 | |
parent | f4a1954036c1a256e89fb087eb39cb719336e7c4 (diff) |
mfd: wm8994: Silence warning about supplies during deferred probe
Don't confuse user with meaningless warning about the failure in getting
supplies in case of deferred probe.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/wm8994-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 69d973ec42bf..3b2b93c5bbcb 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -393,7 +393,9 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) ret = regulator_bulk_get(wm8994->dev, wm8994->num_supplies, wm8994->supplies); if (ret != 0) { - dev_err(wm8994->dev, "Failed to get supplies: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(wm8994->dev, "Failed to get supplies: %d\n", + ret); goto err; } |