Skip to contentSkip to conversation

video: nuc900fb: fix compile error

PATCH In review Axel Lin 3 participants 4 messages Jan 17, 2011 – Jan 18, 2011 Framebuffer layer

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 video: nuc900fb: fix compile error

Quoted 1 line

From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
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

---
 drivers/video/nuc900fb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/nuc900fb.c +2 -2
index 62498bd..29ef92f 100644
@@ -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;
 }
Signature · 1 line
1.7.2
author
#1 lore raw

PATCH 2/2 video: nuc900fb: properly free resources in nuc900fb_remove

Quoted 1 line

From f0064467b1f9696ebcade98ec75ef3fbc6cfe38f Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Mon, 17 Jan 2011 16:25:57 +0800
Subject: [PATCH 2/2] video: nuc900fb: properly free resources in nuc900fb_remove

---
 drivers/video/nuc900fb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/nuc900fb.c +2 -0
index 29ef92f..f838d9e 100644
@@ -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);
Signature · 1 line
1.7.2
#2 lore raw
Quoted 19 lines · Axel Lin
Quoted 1 line

From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
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

Quoted 6 lines · Axel Lin
Quoted 1 line

From f0064467b1f9696ebcade98ec75ef3fbc6cfe38f Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Mon, 17 Jan 2011 16:25:57 +0800
Subject: [PATCH 2/2] video: nuc900fb: properly free resources in nuc900fb_remove

Both applied, thanks.

Acked-by on v1 1/2
#3 lore raw
In reply to Axel Lin

2011/1/17 Axel Lin <[email protected]>:

Quoted 37 lines
Quoted 1 line

From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
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

---
?drivers/video/nuc900fb.c | ? ?4 ++--
?1 files changed, 2 insertions(+), 2 deletions(-)

drivers/video/nuc900fb.c +1 -1
index 62498bd..29ef92f 100644
@@ -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;

drivers/video/nuc900fb.c static int nuc900fb_resume(struct platform_device *dev) · line 746

Quoted 8 lines
drivers/video/nuc900fb.c +1 -1
@@ -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.

Quoted 6 lines

--
1.7.2

Signature · 10 lines
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel at lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:NUC900 at googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com at gmail.com