From a42dcb883d948a5f26c005f0e401e8297aa05f76 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 24 May 2010 14:34:09 -0700 Subject: [PATCH] nuc900fb: release correct mem region We should be releasing "res->start" here. Signed-off-by: Dan Carpenter Acked-by: Wan ZongShun Cc: Wang Qiang Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/nuc900fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ static int __devinit nuc900fb_probe(struct platform_device *pdev) 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; -- GitLab