aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory/tegra20-mc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/memory/tegra20-mc.c')
-rw-r--r--drivers/memory/tegra20-mc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/memory/tegra20-mc.c b/drivers/memory/tegra20-mc.c
index 0548eeacd573..7cd82b874abd 100644
--- a/drivers/memory/tegra20-mc.c
+++ b/drivers/memory/tegra20-mc.c
@@ -218,8 +218,6 @@ static int tegra20_mc_probe(struct platform_device *pdev)
218 struct resource *res; 218 struct resource *res;
219 219
220 res = platform_get_resource(pdev, IORESOURCE_MEM, i); 220 res = platform_get_resource(pdev, IORESOURCE_MEM, i);
221 if (!res)
222 return -ENODEV;
223 mc->regs[i] = devm_ioremap_resource(&pdev->dev, res); 221 mc->regs[i] = devm_ioremap_resource(&pdev->dev, res);
224 if (IS_ERR(mc->regs[i])) 222 if (IS_ERR(mc->regs[i]))
225 return PTR_ERR(mc->regs[i]); 223 return PTR_ERR(mc->regs[i]);