summaryrefslogtreecommitdiffstats
path: root/drivers/video/nuc900fb.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-24 23:34:09 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-25 17:07:09 +0200
commita42dcb883d948a5f26c005f0e401e8297aa05f76 (patch)
tree75ceabdedee10e9da54c1b86d6fe60b818a56867 /drivers/video/nuc900fb.c
parentfb_defio: fix for non-dirty ptes (diff)
downloadlinux-a42dcb883d948a5f26c005f0e401e8297aa05f76.tar.xz
linux-a42dcb883d948a5f26c005f0e401e8297aa05f76.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/video/nuc900fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
index 6bf0d460a738..d4cde79ea15e 100644
--- a/drivers/video/nuc900fb.c
+++ b/drivers/video/nuc900fb.c
@@ -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;