diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-24 17:34:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 11:07:09 -0400 |
commit | a42dcb883d948a5f26c005f0e401e8297aa05f76 (patch) | |
tree | 75ceabdedee10e9da54c1b86d6fe60b818a56867 /drivers/video/nuc900fb.c | |
parent | 49bbd815fd8ba26d0354900b783b767c7f47c816 (diff) |
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/video/nuc900fb.c')
-rw-r--r-- | drivers/video/nuc900fb.c | 2 |
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: | |||
667 | release_regs: | 667 | release_regs: |
668 | iounmap(fbi->io); | 668 | iounmap(fbi->io); |
669 | release_mem_region: | 669 | release_mem_region: |
670 | release_mem_region((unsigned long)fbi->mem, size); | 670 | release_mem_region(res->start, size); |
671 | free_fb: | 671 | free_fb: |
672 | framebuffer_release(fbinfo); | 672 | framebuffer_release(fbinfo); |
673 | return ret; | 673 | return ret; |