summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2013-08-20 16:09:49 -0700
committerKevin Hilman <khilman@linaro.org>2013-08-20 16:10:28 -0700
commit30f9c3bdcec9c810f5bd05b177367c7eeab24d90 (patch)
treef1b4faf38409fb52a7c89efc2093e2aedba151ca /drivers/iommu
parentc454194612e2e88d470f10b959db8ca0045c99bb (diff)
parent946a88df76a2c5a9f4087fb41efd9d2763872302 (diff)
downloadop-kernel-dev-30f9c3bdcec9c810f5bd05b177367c7eeab24d90.zip
op-kernel-dev-30f9c3bdcec9c810f5bd05b177367c7eeab24d90.tar.gz
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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index f6f120e..e066560 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]);
OpenPOWER on IntegriCloud