From: Sergej Sawazki Date: Sun, 28 Jun 2015 14:24:54 +0000 (+0200) Subject: clk: gpio-gate: Stay silent on EPROBE_DEFER X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=281cbb007612814183d79b1f72d0395303fcfb6f;p=openwrt%2Fstaging%2Fblogic.git clk: gpio-gate: Stay silent on EPROBE_DEFER Do not output an error message if requesting gpio failes with EPROBE_DEFER. Cc: Jyri Sarha Signed-off-by: Sergej Sawazki Signed-off-by: Stephen Boyd --- 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); }