projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f97b62
)
drivers/i2c/busses: don't check resource with devm_ioremap_resource
author
Wolfram Sang
<wsa@the-dreams.de>
Tue, 23 Jul 2013 18:01:39 +0000
(20:01 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Wed, 7 Aug 2013 15:38:06 +0000
(17:38 +0200)
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/i2c/busses/i2c-stu300.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-stu300.c
b/drivers/i2c/busses/i2c-stu300.c
index d1a6b204af00856748b67e7d42253ebb7c849e3f..ded21cfa77da2b9c77c3158ea44500a465049dad 100644
(file)
--- a/
drivers/i2c/busses/i2c-stu300.c
+++ b/
drivers/i2c/busses/i2c-stu300.c
@@
-884,9
+884,6
@@
stu300_probe(struct platform_device *pdev)
dev->pdev = pdev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -ENOENT;
-
dev->virtbase = devm_ioremap_resource(&pdev->dev, res);
dev_dbg(&pdev->dev, "initialize bus device I2C%d on virtual "
"base %p\n", bus_nr, dev->virtbase);