diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 15:19:48 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 11:55:32 +0200 |
commit | 00d083f928a37199e0fac984845bfd8b3587238e (patch) | |
tree | da65588c4dc0b06559bfed51f6adf0c300c71c1a /drivers/i2c/busses/i2c-tegra.c | |
parent | drivers/gpu/host1x/drm: don't check resource with devm_ioremap_resource (diff) | |
download | linux-00d083f928a37199e0fac984845bfd8b3587238e.tar.xz linux-00d083f928a37199e0fac984845bfd8b3587238e.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: Stephen Warren <swarren@nvidia.com>
Acked-by: Barry Song <Baohua.Song@csr.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index b60ff90adc39..9aa1b60f7fdd 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -714,11 +714,6 @@ static int tegra_i2c_probe(struct platform_device *pdev) int ret = 0; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "no mem resource\n"); - return -EINVAL; - } - base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base); |