projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85fe641
)
gpio: mlxbf2.c: Add check for bgpio_init failure
author
Asmaa Mnebhi
<asmaa@nvidia.com>
Fri, 22 Oct 2021 13:44:38 +0000
(09:44 -0400)
committer
Bartosz Golaszewski
<brgl@bgdev.pl>
Mon, 25 Oct 2021 08:15:05 +0000
(10:15 +0200)
Add a check if bgpio_init fails.
Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-mlxbf2.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mlxbf2.c
b/drivers/gpio/gpio-mlxbf2.c
index
177d03e
..
40a052b
100644
(file)
--- a/
drivers/gpio/gpio-mlxbf2.c
+++ b/
drivers/gpio/gpio-mlxbf2.c
@@
-256,6
+256,11
@@
mlxbf2_gpio_probe(struct platform_device *pdev)
NULL,
0);
+ if (ret) {
+ dev_err(dev, "bgpio_init failed\n");
+ return ret;
+ }
+
gc->direction_input = mlxbf2_gpio_direction_input;
gc->direction_output = mlxbf2_gpio_direction_output;
gc->ngpio = npins;