gpio: davinci: Convert prinkt to dev_err
authorKeerthy <j-keerthy@ti.com>
Thu, 20 Jul 2017 09:42:18 +0000 (15:12 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:12 +0000 (15:01 +0200)
In case of devm_clk_get failure use dev_err instead of printk

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c

index 27499ecc3c5eb1cc9f25822733ac5926c1fa14e2..3fb970a74fd76d7b04a8dee6767d42a9f4474868 100644 (file)
@@ -487,8 +487,7 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev)
 
        clk = devm_clk_get(dev, "gpio");
        if (IS_ERR(clk)) {
-               printk(KERN_ERR "Error %ld getting gpio clock?\n",
-                      PTR_ERR(clk));
+               dev_err(dev, "Error %ld getting gpio clock\n", PTR_ERR(clk));
                return PTR_ERR(clk);
        }
        ret = clk_prepare_enable(clk);