projects
/
GitHub
/
moto-9609
/
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:
85fdaf8
)
mfd: ipaq-micro: Delete redundant return value check of platform_get_resource()
author
Belen Sarabia
<belensarabia@gmail.com>
Sat, 25 Mar 2017 18:26:47 +0000
(19:26 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:05 +0000
(09:25 +0100)
devm_ioremap_resource does checks on the resource. No need to
duplicate this in the driver.
Signed-off-by: Belén Sarabia <belensarabia@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ipaq-micro.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/ipaq-micro.c
b/drivers/mfd/ipaq-micro.c
index df16fd1df68be61b00f093d279400abe28660cc8..124aad2b1d02978155020a1042099a6e7e0b8072 100644
(file)
--- a/
drivers/mfd/ipaq-micro.c
+++ b/
drivers/mfd/ipaq-micro.c
@@
-400,9
+400,6
@@
static int __init micro_probe(struct platform_device *pdev)
micro->dev = &pdev->dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -EINVAL;
-
micro->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(micro->base))
return PTR_ERR(micro->base);