projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01062ad
)
gpio: mb86s7x: Handle return value of clk_prepare_enable.
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Tue, 1 Aug 2017 06:43:05 +0000
(12:13 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:03:38 +0000
(15:03 +0200)
clk_prepare_enable() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mb86s7x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-mb86s7x.c
b/drivers/gpio/gpio-mb86s7x.c
index ffb73f688ae13062595b3f83a8730086e800ab03..94d772677ed69c0f4d27c98c105525b6a0f0aba1 100644
(file)
--- a/
drivers/gpio/gpio-mb86s7x.c
+++ b/
drivers/gpio/gpio-mb86s7x.c
@@
-168,7
+168,9
@@
static int mb86s70_gpio_probe(struct platform_device *pdev)
if (IS_ERR(gchip->clk))
return PTR_ERR(gchip->clk);
- clk_prepare_enable(gchip->clk);
+ ret = clk_prepare_enable(gchip->clk);
+ if (ret)
+ return ret;
spin_lock_init(&gchip->lock);