Commit a42dcb88 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds

nuc900fb: release correct mem region

We should be releasing "res->start" here.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarWan ZongShun <mcuos.com@gmail.com>
Cc: Wang Qiang <rurality.linux@gmail.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment