diff options
author | Keerthy <j-keerthy@ti.com> | 2017-07-20 05:42:18 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 09:01:12 -0400 |
commit | 1a9ef909acc1d2e4ded41465e4ced22291ee999a (patch) | |
tree | 57e7140646b8a5daf756cc93d5f2dc17af6f6533 /drivers/gpio/gpio-davinci.c | |
parent | 8327e1ba12aa0e513e517fc254c053fecb0d2df5 (diff) |
gpio: davinci: Convert prinkt to dev_err
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>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 27499ecc3c5e..3fb970a74fd7 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c | |||
@@ -487,8 +487,7 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev) | |||
487 | 487 | ||
488 | clk = devm_clk_get(dev, "gpio"); | 488 | clk = devm_clk_get(dev, "gpio"); |
489 | if (IS_ERR(clk)) { | 489 | if (IS_ERR(clk)) { |
490 | printk(KERN_ERR "Error %ld getting gpio clock?\n", | 490 | dev_err(dev, "Error %ld getting gpio clock\n", PTR_ERR(clk)); |
491 | PTR_ERR(clk)); | ||
492 | return PTR_ERR(clk); | 491 | return PTR_ERR(clk); |
493 | } | 492 | } |
494 | ret = clk_prepare_enable(clk); | 493 | ret = clk_prepare_enable(clk); |