From: Wolfram Sang Date: Tue, 23 Jul 2013 18:01:39 +0000 (+0200) Subject: drivers/i2c/busses: don't check resource with devm_ioremap_resource X-Git-Tag: v3.12-rc1~140^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2806914f5d027c225c7562a0f2dd7e20c3ba8beb;p=platform%2Fkernel%2Flinux-exynos.git 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 Acked-by: Linus Walleij --- diff --git a/drivers/i2c/busses/i2c-stu300.c b/drivers/i2c/busses/i2c-stu300.c index d1a6b20..ded21cf 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);