summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-24 21:34:09 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-25 15:07:09 (GMT)
commita42dcb883d948a5f26c005f0e401e8297aa05f76 (patch)
tree75ceabdedee10e9da54c1b86d6fe60b818a56867 /drivers
parent49bbd815fd8ba26d0354900b783b767c7f47c816 (diff)
downloadlinux-a42dcb883d948a5f26c005f0e401e8297aa05f76.tar.xz
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 'drivers')
-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 6bf0d46..d4cde79 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;