video: s3c-fb: s3c_fb_missing_pixclock() can't be __devinit
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
@@ -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
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 froms3c_fb_set_rgb_timing()which is used in the suspend/resume paths it can't be marked__devinitas this could result in it being discarded after boot.Signed-off-by Mark Brown <[email protected]>
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@@ -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
Quoted 5 lines · Mark Brown
Since
s3c_fb_missing_pixclock()is called froms3c_fb_set_rgb_timing()which is used in the suspend/resume paths it can't be marked__devinitas this could result in it being discarded after boot.Signed-off-by Mark Brown <[email protected]>
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@@ -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;
Quoted 9 lines · Florian Tobias Schandinat
Quoted 5 lines · Mark Brown
Since
s3c_fb_missing_pixclock()is called froms3c_fb_set_rgb_timing()which is used in the suspend/resume paths it can't be marked__devinitas this could result in it being discarded after boot.Signed-off-by Mark Brown <[email protected]>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.