Skip to content

Commit 7ff864e

Browse files
mszyprowLee Jones
authored andcommitted
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 <[email protected]> Acked-by: Charles Keepax <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent f4a1954 commit 7ff864e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/mfd/wm8994-core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq)
393393
ret = regulator_bulk_get(wm8994->dev, wm8994->num_supplies,
394394
wm8994->supplies);
395395
if (ret != 0) {
396-
dev_err(wm8994->dev, "Failed to get supplies: %d\n", ret);
396+
if (ret != -EPROBE_DEFER)
397+
dev_err(wm8994->dev, "Failed to get supplies: %d\n",
398+
ret);
397399
goto err;
398400
}
399401

0 commit comments

Comments
 (0)