nuc900fb: release correct mem region
We should be releasing "res->start" here. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Wan ZongShun <mcuos.com@gmail.com> Cc: Wang Qiang <rurality.linux@gmail.com> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
49bbd815fd
commit
a42dcb883d
@ -667,7 +667,7 @@ release_irq:
|
||||
release_regs:
|
||||
iounmap(fbi->io);
|
||||
release_mem_region:
|
||||
release_mem_region((unsigned long)fbi->mem, size);
|
||||
release_mem_region(res->start, size);
|
||||
free_fb:
|
||||
framebuffer_release(fbinfo);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user