浏览代码

Merge tag 'tegra-for-3.15-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers

Merge "ARM: tegra: driver changes for 3.15" from Stephen Warren:

A single cleanup for the Tegra AHB driver.

* tag 'tegra-for-3.15-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  drivers/amba: don't check resource with devm_ioremap_resource

Signed-off-by: Olof Johansson <olof@lixom.net>
Olof Johansson 11 年之前
父节点
当前提交
d79b757587
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/amba/tegra-ahb.c

+ 0 - 2
drivers/amba/tegra-ahb.c

@@ -256,8 +256,6 @@ static int tegra_ahb_probe(struct platform_device *pdev)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!res)
-		return -ENODEV;
 	ahb->regs = devm_ioremap_resource(&pdev->dev, res);
 	ahb->regs = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(ahb->regs))
 	if (IS_ERR(ahb->regs))
 		return PTR_ERR(ahb->regs);
 		return PTR_ERR(ahb->regs);