diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-09-22 19:47:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:57 -0400 |
commit | 3163eaba34943967aebb1eefa0d4bdc4e5dc197c (patch) | |
tree | df8c1affee6aed703d00075e6f4b9aabd45b05be | |
parent | a9672c4b861afcf547bfe2cafeec4ca85a63da67 (diff) |
video: s3c_fb.c: fix build with CONFIG_HOTPLUG=n
Fixes `s3c_fb_remove' referenced in section `.data' of
drivers/built-in.o: defined in discarded section `.devexit.text' of
drivers/built-in.o
With CONFIG_HOTPLUG=n, functions marked with __devexit gets removed,
so make sure we use __devexit_p when referencing pointers to them.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/s3c-fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 5a72083dc67c..adf9632c6b1f 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c | |||
@@ -1036,7 +1036,7 @@ static int s3c_fb_resume(struct platform_device *pdev) | |||
1036 | 1036 | ||
1037 | static struct platform_driver s3c_fb_driver = { | 1037 | static struct platform_driver s3c_fb_driver = { |
1038 | .probe = s3c_fb_probe, | 1038 | .probe = s3c_fb_probe, |
1039 | .remove = s3c_fb_remove, | 1039 | .remove = __devexit_p(s3c_fb_remove), |
1040 | .suspend = s3c_fb_suspend, | 1040 | .suspend = s3c_fb_suspend, |
1041 | .resume = s3c_fb_resume, | 1041 | .resume = s3c_fb_resume, |
1042 | .driver = { | 1042 | .driver = { |