提交 a42dcb88 编写于 作者: D Dan Carpenter 提交者: Linus Torvalds

nuc900fb: release correct mem region

We should be releasing "res->start" here.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Acked-by: NWan ZongShun <mcuos.com@gmail.com>
Cc: Wang Qiang <rurality.linux@gmail.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 49bbd815
...@@ -667,7 +667,7 @@ static int __devinit nuc900fb_probe(struct platform_device *pdev) ...@@ -667,7 +667,7 @@ static int __devinit nuc900fb_probe(struct platform_device *pdev)
release_regs: release_regs:
iounmap(fbi->io); iounmap(fbi->io);
release_mem_region: release_mem_region:
release_mem_region((unsigned long)fbi->mem, size); release_mem_region(res->start, size);
free_fb: free_fb:
framebuffer_release(fbinfo); framebuffer_release(fbinfo);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册