Commit 281cbb00 authored by Sergej Sawazki's avatar Sergej Sawazki Committed by Stephen Boyd

clk: gpio-gate: Stay silent on EPROBE_DEFER

Do not output an error message if requesting gpio failes with EPROBE_DEFER.

Cc: Jyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarSergej Sawazki <ce3a@gmx.de>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent e21b08e2
......@@ -90,8 +90,9 @@ struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
err = gpio_request_one(gpio, gpio_flags, name);
if (err) {
pr_err("%s: %s: Error requesting clock control gpio %u\n",
__func__, name, gpio);
if (err != -EPROBE_DEFER)
pr_err("%s: %s: Error requesting clock control gpio %u\n",
__func__, name, gpio);
return ERR_PTR(err);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment