summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2013-08-21 01:09:49 +0200
committerKevin Hilman <khilman@linaro.org>2013-08-21 01:10:28 +0200
commit30f9c3bdcec9c810f5bd05b177367c7eeab24d90 (patch)
treef1b4faf38409fb52a7c89efc2093e2aedba151ca /drivers/iommu
parentMerge tag 'zynq-cleanup-for-3.12' of git://git.xilinx.com/linux-xlnx into nex... (diff)
parenttegra: simplify use of devm_ioremap_resource (diff)
downloadlinux-30f9c3bdcec9c810f5bd05b177367c7eeab24d90.tar.xz
linux-30f9c3bdcec9c810f5bd05b177367c7eeab24d90.zip
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 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]);