summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-stu300.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-07-23 20:01:39 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-08-07 17:38:06 +0200
commit2806914f5d027c225c7562a0f2dd7e20c3ba8beb (patch)
tree3f9fab3e2139d670b9d0aaa21a9f28ddb8c04f87 /drivers/i2c/busses/i2c-stu300.c
parentdrivers/i2c/busses: don't use devm_pinctrl_get_select_default() in probe (diff)
downloadlinux-2806914f5d027c225c7562a0f2dd7e20c3ba8beb.tar.xz
linux-2806914f5d027c225c7562a0f2dd7e20c3ba8beb.zip
drivers/i2c/busses: don't check resource with devm_ioremap_resource
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-stu300.c')
-rw-r--r--drivers/i2c/busses/i2c-stu300.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-stu300.c b/drivers/i2c/busses/i2c-stu300.c
index d1a6b204af00..ded21cfa77da 100644
--- 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);