提交 281cbb00 编写于 作者: S Sergej Sawazki 提交者: 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: NSergej Sawazki <ce3a@gmx.de>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 e21b08e2
...@@ -90,8 +90,9 @@ struct clk *clk_register_gpio_gate(struct device *dev, const char *name, ...@@ -90,8 +90,9 @@ struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
err = gpio_request_one(gpio, gpio_flags, name); err = gpio_request_one(gpio, gpio_flags, name);
if (err) { if (err) {
pr_err("%s: %s: Error requesting clock control gpio %u\n", if (err != -EPROBE_DEFER)
__func__, name, gpio); pr_err("%s: %s: Error requesting clock control gpio %u\n",
__func__, name, gpio);
return ERR_PTR(err); return ERR_PTR(err);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册