diff options
author | Kevin Hilman <khilman@linaro.org> | 2013-08-20 16:09:49 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2013-08-20 16:10:28 -0700 |
commit | 30f9c3bdcec9c810f5bd05b177367c7eeab24d90 (patch) | |
tree | f1b4faf38409fb52a7c89efc2093e2aedba151ca /drivers/iommu | |
parent | c454194612e2e88d470f10b959db8ca0045c99bb (diff) | |
parent | 946a88df76a2c5a9f4087fb41efd9d2763872302 (diff) | |
download | linux-30f9c3bdcec9c810f5bd05b177367c7eeab24d90.tar.bz2 |
Merge tag 'tegra-for-3.12-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra into next/cleanup
From: Stephen Warren:
ARM: tegra: cleanups for 3.12
This branch includes a single cleanup patch which removes redundant
error-handling for platform_get_resource().
* tag 'tegra-for-3.12-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra:
tegra: simplify use of devm_ioremap_resource
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index f6f120e25409..e0665603afd9 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -1177,8 +1177,6 @@ static int tegra_smmu_probe(struct platform_device *pdev) struct resource *res; res = platform_get_resource(pdev, IORESOURCE_MEM, i); - if (!res) - return -ENODEV; smmu->regs[i] = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(smmu->regs[i])) return PTR_ERR(smmu->regs[i]); |