From 281cbb007612814183d79b1f72d0395303fcfb6f Mon Sep 17 00:00:00 2001 From: Sergej Sawazki Date: Sun, 28 Jun 2015 16:24:54 +0200 Subject: [PATCH] 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 --- drivers/clk/clk-gpio-gate.c | 5 +++-- 1 file 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); } -- 2.20.1