提交 207f6582 编写于 作者: B Brian Norris

mtd: brcmnand: defer to devm_ioremap_resource() for error checking

devm_ioremap_resource() does error checking on the 'res' argument, so
drop the error check in bcm6368_nand.c.
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
Tested-by: NSimon Arlott <simon@fire.lp0.eu>
上级 af3855dd
......@@ -105,9 +105,6 @@ static int bcm6368_nand_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev,
IORESOURCE_MEM, "nand-int-base");
if (!res)
return -EINVAL;
priv->base = devm_ioremap_resource(dev, res);
if (IS_ERR(priv->base))
return PTR_ERR(priv->base);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册