diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 09:19:48 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 05:55:32 -0400 |
commit | 00d083f928a37199e0fac984845bfd8b3587238e (patch) | |
tree | da65588c4dc0b06559bfed51f6adf0c300c71c1a /drivers/i2c/busses/i2c-s3c2410.c | |
parent | 849d34571fee01dc45dd4dc9cd13d748c86762df (diff) |
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: Stephen Warren <swarren@nvidia.com>
Acked-by: Barry Song <Baohua.Song@csr.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-s3c2410.c')
-rw-r--r-- | drivers/i2c/busses/i2c-s3c2410.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 6e8ee92ab553..cab1c91b75a3 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c | |||
@@ -1082,11 +1082,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) | |||
1082 | /* map the registers */ | 1082 | /* map the registers */ |
1083 | 1083 | ||
1084 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1084 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1085 | if (res == NULL) { | ||
1086 | dev_err(&pdev->dev, "cannot find IO resource\n"); | ||
1087 | return -ENOENT; | ||
1088 | } | ||
1089 | |||
1090 | i2c->regs = devm_ioremap_resource(&pdev->dev, res); | 1085 | i2c->regs = devm_ioremap_resource(&pdev->dev, res); |
1091 | 1086 | ||
1092 | if (IS_ERR(i2c->regs)) | 1087 | if (IS_ERR(i2c->regs)) |