* [PATCH 1/2] video: nuc900fb: fix compile error
@ 2011-01-17 8:32 Axel Lin
2011-01-17 8:33 ` [PATCH 2/2] video: nuc900fb: properly free resources in Axel Lin
2011-01-17 8:40 ` Wan ZongShun
0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2011-01-17 8:32 UTC (permalink / raw)
To: linux-arm-kernel
From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@gmail.com>
Date: Mon, 17 Jan 2011 16:24:36 +0800
Subject: [PATCH 1/2] video: nuc900fb: fix compile error
This patch fixes below compile error:
CC drivers/video/nuc900fb.o
drivers/video/nuc900fb.c: In function 'nuc900fb_suspend':
drivers/video/nuc900fb.c:726: error: too few arguments to function 'nuc900fb_stop_lcd'
drivers/video/nuc900fb.c: In function 'nuc900fb_resume':
drivers/video/nuc900fb.c:743: error: 'bfinfo' undeclared (first use in this function)
drivers/video/nuc900fb.c:743: error: (Each undeclared identifier is reported only once
drivers/video/nuc900fb.c:743: error: for each function it appears in.)
make[2]: *** [drivers/video/nuc900fb.o] Error 1
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/video/nuc900fb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
index 62498bd..29ef92f 100644
--- a/drivers/video/nuc900fb.c
+++ b/drivers/video/nuc900fb.c
@@ -723,7 +723,7 @@ static int nuc900fb_suspend(struct platform_device *dev, pm_message_t state)
struct fb_info *fbinfo = platform_get_drvdata(dev);
struct nuc900fb_info *info = fbinfo->par;
- nuc900fb_stop_lcd();
+ nuc900fb_stop_lcd(fbinfo);
msleep(1);
clk_disable(info->clk);
return 0;
@@ -740,7 +740,7 @@ static int nuc900fb_resume(struct platform_device *dev)
msleep(1);
nuc900fb_init_registers(fbinfo);
- nuc900fb_activate_var(bfinfo);
+ nuc900fb_activate_var(fbinfo);
return 0;
}
--
1.7.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] video: nuc900fb: properly free resources in
2011-01-17 8:32 [PATCH 1/2] video: nuc900fb: fix compile error Axel Lin
@ 2011-01-17 8:33 ` Axel Lin
2011-01-18 4:36 ` [PATCH 1/2] video: nuc900fb: fix compile error Paul Mundt
2011-01-17 8:40 ` Wan ZongShun
1 sibling, 1 reply; 4+ messages in thread
From: Axel Lin @ 2011-01-17 8:33 UTC (permalink / raw)
To: linux-arm-kernel
From f0064467b1f9696ebcade98ec75ef3fbc6cfe38f Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@gmail.com>
Date: Mon, 17 Jan 2011 16:25:57 +0800
Subject: [PATCH 2/2] video: nuc900fb: properly free resources in nuc900fb_remove
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/video/nuc900fb.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
index 29ef92f..f838d9e 100644
--- a/drivers/video/nuc900fb.c
+++ b/drivers/video/nuc900fb.c
@@ -696,6 +696,8 @@ static int nuc900fb_remove(struct platform_device *pdev)
nuc900fb_stop_lcd(fbinfo);
msleep(1);
+ unregister_framebuffer(fbinfo);
+ nuc900fb_cpufreq_deregister(fbi);
nuc900fb_unmap_video_memory(fbinfo);
iounmap(fbi->io);
--
1.7.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] video: nuc900fb: fix compile error
2011-01-17 8:32 [PATCH 1/2] video: nuc900fb: fix compile error Axel Lin
2011-01-17 8:33 ` [PATCH 2/2] video: nuc900fb: properly free resources in Axel Lin
@ 2011-01-17 8:40 ` Wan ZongShun
1 sibling, 0 replies; 4+ messages in thread
From: Wan ZongShun @ 2011-01-17 8:40 UTC (permalink / raw)
To: linux-arm-kernel
2011/1/17 Axel Lin <axel.lin@gmail.com>:
> >From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001
> From: Axel Lin <axel.lin@gmail.com>
> Date: Mon, 17 Jan 2011 16:24:36 +0800
> Subject: [PATCH 1/2] video: nuc900fb: fix compile error
>
> This patch fixes below compile error:
>
> CC drivers/video/nuc900fb.o
> drivers/video/nuc900fb.c: In function 'nuc900fb_suspend':
> drivers/video/nuc900fb.c:726: error: too few arguments to function 'nuc900fb_stop_lcd'
> drivers/video/nuc900fb.c: In function 'nuc900fb_resume':
> drivers/video/nuc900fb.c:743: error: 'bfinfo' undeclared (first use in this function)
> drivers/video/nuc900fb.c:743: error: (Each undeclared identifier is reported only once
> drivers/video/nuc900fb.c:743: error: for each function it appears in.)
> make[2]: *** [drivers/video/nuc900fb.o] Error 1
> make[1]: *** [drivers/video] Error 2
> make: *** [drivers] Error 2
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/video/nuc900fb.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
> index 62498bd..29ef92f 100644
> --- a/drivers/video/nuc900fb.c
> +++ b/drivers/video/nuc900fb.c
> @@ -723,7 +723,7 @@ static int nuc900fb_suspend(struct platform_device *dev, pm_message_t state)
> struct fb_info *fbinfo = platform_get_drvdata(dev);
> struct nuc900fb_info *info = fbinfo->par;
>
> - nuc900fb_stop_lcd();
> + nuc900fb_stop_lcd(fbinfo);
> msleep(1);
> clk_disable(info->clk);
> return 0;
> @@ -740,7 +740,7 @@ static int nuc900fb_resume(struct platform_device *dev)
> msleep(1);
>
> nuc900fb_init_registers(fbinfo);
> - nuc900fb_activate_var(bfinfo);
> + nuc900fb_activate_var(fbinfo);
>
> return 0;
> }
Thanks for your patches.
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
> --
> 1.7.2
>
>
>
>
--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel@lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
* linux-arm-NUC900 mailing list
mail addr:NUC900@googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] video: nuc900fb: fix compile error
2011-01-17 8:33 ` [PATCH 2/2] video: nuc900fb: properly free resources in Axel Lin
@ 2011-01-18 4:36 ` Paul Mundt
0 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2011-01-18 4:36 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jan 17, 2011 at 04:32:23PM +0800, Axel Lin wrote:
> >From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001
> From: Axel Lin <axel.lin@gmail.com>
> Date: Mon, 17 Jan 2011 16:24:36 +0800
> Subject: [PATCH 1/2] video: nuc900fb: fix compile error
>
> This patch fixes below compile error:
>
> CC drivers/video/nuc900fb.o
> drivers/video/nuc900fb.c: In function 'nuc900fb_suspend':
> drivers/video/nuc900fb.c:726: error: too few arguments to function 'nuc900fb_stop_lcd'
> drivers/video/nuc900fb.c: In function 'nuc900fb_resume':
> drivers/video/nuc900fb.c:743: error: 'bfinfo' undeclared (first use in this function)
> drivers/video/nuc900fb.c:743: error: (Each undeclared identifier is reported only once
> drivers/video/nuc900fb.c:743: error: for each function it appears in.)
> make[2]: *** [drivers/video/nuc900fb.o] Error 1
> make[1]: *** [drivers/video] Error 2
> make: *** [drivers] Error 2
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
On Mon, Jan 17, 2011 at 04:33:42PM +0800, Axel Lin wrote:
> >From f0064467b1f9696ebcade98ec75ef3fbc6cfe38f Mon Sep 17 00:00:00 2001
> From: Axel Lin <axel.lin@gmail.com>
> Date: Mon, 17 Jan 2011 16:25:57 +0800
> Subject: [PATCH 2/2] video: nuc900fb: properly free resources in nuc900fb_remove
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Both applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-18 4:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 8:32 [PATCH 1/2] video: nuc900fb: fix compile error Axel Lin
2011-01-17 8:33 ` [PATCH 2/2] video: nuc900fb: properly free resources in Axel Lin
2011-01-18 4:36 ` [PATCH 1/2] video: nuc900fb: fix compile error Paul Mundt
2011-01-17 8:40 ` Wan ZongShun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).