提交 d3aad639 编写于 作者: H H Hartley Sweeten 提交者: Richard Purdie

leds: leds-cobalt-raq.c - use resource_size()

Use resource_size() for ioremap.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 ed4a10b4
......@@ -84,7 +84,7 @@ static int __devinit cobalt_raq_led_probe(struct platform_device *pdev)
if (!res)
return -EBUSY;
led_port = ioremap(res->start, res->end - res->start + 1);
led_port = ioremap(res->start, resource_size(res));
if (!led_port)
return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部