提交 58e6a84d 编写于 作者: H H Hartley Sweeten 提交者: David Woodhouse

mtd: fls_upm.c: use resource_size()

Use resource_size().
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 8a19b558
......@@ -302,7 +302,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
FSL_UPM_WAIT_WRITE_BYTE;
fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start,
io_res.end - io_res.start + 1);
resource_size(&io_res));
if (!fun->io_base) {
ret = -ENOMEM;
goto err2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册