projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2071d09
)
gpio: gpio-davinci: remove duplicate check on resource
author
Varka Bhadram
<varkabhadram@gmail.com>
Tue, 28 Oct 2014 06:37:05 +0000
(12:07 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 31 Oct 2014 08:02:34 +0000
(09:02 +0100)
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-davinci.c
b/drivers/gpio/gpio-davinci.c
index 9f0682534e2f46376a7086bc306cf195cc6e8e6f..3faf5f944ccce4ac6800681e9ad0153c4fcb5e57 100644
(file)
--- a/
drivers/gpio/gpio-davinci.c
+++ b/
drivers/gpio/gpio-davinci.c
@@
-234,11
+234,6
@@
static int davinci_gpio_probe(struct platform_device *pdev)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(dev, "Invalid memory resource\n");
- return -EBUSY;
- }
-
gpio_base = devm_ioremap_resource(dev, res);
if (IS_ERR(gpio_base))
return PTR_ERR(gpio_base);