Skip to contentSkip to conversation

video: s3c-fb: s3c_fb_missing_pixclock() can't be __devinit

PATCH In review Mark Brown 3 participants 4 messages Apr 15, 2012 – May 10, 2012 Framebuffer layer

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 video: s3c-fb: s3c_fb_missing_pixclock() can't be __devinit

Since s3c_fb_missing_pixclock() is called from s3c_fb_set_rgb_timing() which is used in the suspend/resume paths it can't be marked __devinit as this could result in it being discarded after boot.

---
 drivers/video/s3c-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/s3c-fb.c +1 -1
index 18c84b8..d8f0018 100644
@@ -1056,7 +1056,7 @@ static struct fb_ops s3c_fb_ops = {
  *
  * Calculate the pixel clock when none has been given through platform data.
  */
-static void __devinit s3c_fb_missing_pixclock(struct fb_videomode *mode)
+static void s3c_fb_missing_pixclock(struct fb_videomode *mode)
 {
 	u64 pixclk = 1000000000000ULL;
 	u32 div;
Signature · 1 line
1.7.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Sunday, April 15, 2012 7:39 PM
To: Jingoo Han; Florian Tobias Schandinat
Cc: [email protected]; Mark Brown
Subject: [PATCH] video: s3c-fb: s3c_fb_missing_pixclock() can't be __devinit

Quoted 5 lines

Since s3c_fb_missing_pixclock() is called from s3c_fb_set_rgb_timing() which is used in the suspend/resume paths it can't be marked __devinit as this could result in it being discarded after boot.

It looks good. Thank you.

Quoted 19 lines
---
 drivers/video/s3c-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/s3c-fb.c +1 -2
index 18c84b8..d8f0018 100644
@@ -1056,7 +1056,7 @@ static struct fb_ops s3c_fb_ops = {
  *
  * Calculate the pixel clock when none has been given through platform data.
  */
-static void __devinit s3c_fb_missing_pixclock(struct fb_videomode *mode)
+static void s3c_fb_missing_pixclock(struct fb_videomode *mode)
 {
 	u64 pixclk = 1000000000000ULL;
 	u32 div;
--

1.7.9.1

#2 lore raw
In reply to Mark Brown
Quoted 5 lines · Mark Brown

Since s3c_fb_missing_pixclock() is called from s3c_fb_set_rgb_timing() which is used in the suspend/resume paths it can't be marked __devinit as this could result in it being discarded after boot.

I'm not sure that this can actually happen. But the code looks saner with the patch applied so I applied it.

Thanks,

Florian Tobias Schandinat

Quoted 17 lines
---
 drivers/video/s3c-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/s3c-fb.c +1 -1
index 18c84b8..d8f0018 100644
@@ -1056,7 +1056,7 @@ static struct fb_ops s3c_fb_ops = {
  *
  * Calculate the pixel clock when none has been given through platform data.
  */
-static void __devinit s3c_fb_missing_pixclock(struct fb_videomode *mode)
+static void s3c_fb_missing_pixclock(struct fb_videomode *mode)
 {
 	u64 pixclk = 1000000000000ULL;
 	u32 div;
author
#3 lore raw
In reply to Mark Brown
Quoted 9 lines · Florian Tobias Schandinat
Quoted 5 lines · Mark Brown

Since s3c_fb_missing_pixclock() is called from s3c_fb_set_rgb_timing() which is used in the suspend/resume paths it can't be marked __devinit as this could result in it being discarded after boot.

I'm not sure that this can actually happen. But the code looks saner with the patch applied so I applied it.

Thanks. To trigger you'd need to disable CONFIG_HOTPLUG and modules (possibly some other stuff too) but the main motiviation is that the build system complains loudly about section mismatches.