clk: gpio-gate: Stay silent on EPROBE_DEFER
authorSergej Sawazki <ce3a@gmx.de>
Sun, 28 Jun 2015 14:24:54 +0000 (16:24 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 6 Jul 2015 22:55:07 +0000 (15:55 -0700)
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>
drivers/clk/clk-gpio-gate.c

index a377f8848f0af56f3bbfb1e9bbf1500170c70805..ef942daa955a05238e7a6d2d1836029d28d2cc9d 100644 (file)
@@ -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);
        }