diff options
author | Sergej Sawazki <ce3a@gmx.de> | 2015-06-28 17:24:54 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-07-07 01:55:07 +0300 |
commit | 281cbb007612814183d79b1f72d0395303fcfb6f (patch) | |
tree | 0e690aec22acf5ffde7259e1ef96df1129f48e4e | |
parent | e21b08e2f3e1ebb13d5930bd994cfaada22ed58b (diff) | |
download | linux-281cbb007612814183d79b1f72d0395303fcfb6f.tar.xz |
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: Sergej Sawazki <ce3a@gmx.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/clk-gpio-gate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clk/clk-gpio-gate.c b/drivers/clk/clk-gpio-gate.c index a377f8848f0a..ef942daa955a 100644 --- a/drivers/clk/clk-gpio-gate.c +++ b/drivers/clk/clk-gpio-gate.c @@ -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); } |