提交 b1cbe7d6 编写于 作者: A Alexandru Gheorghiu 提交者: Jeff Garzik

pata_octeon_cf: Use resource_size function

Use resource_size function instead of explicit computation.
Patch found using coccinelle.
Signed-off-by: NAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 e0044c98
......@@ -926,7 +926,7 @@ static int octeon_cf_probe(struct platform_device *pdev)
goto free_cf_port;
}
cs1 = devm_ioremap_nocache(&pdev->dev, res_cs1->start,
res_cs1->end - res_cs1->start + 1);
resource_size(res_cs1));
if (!cs1)
goto free_cf_port;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册