nuc900fb: release correct mem region
authorDan Carpenter <error27@gmail.com>
Mon, 24 May 2010 21:34:09 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:09 +0000 (08:07 -0700)
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>
drivers/video/nuc900fb.c

index 6bf0d460a738532a39e767ed4719aa3db3833359..d4cde79ea15e61362a34736179520053d68383bc 100644 (file)
@@ -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;