tdfxfb: fix section mismatch warnings
authorRandy Dunlap <[email protected]>
Wed, 6 Feb 2008 09:39:19 +0000 (01:39 -0800)
committerLinus Torvalds <[email protected]>
Wed, 6 Feb 2008 18:41:16 +0000 (10:41 -0800)
tdfxfb_setup() can be __init.  This fixes the modpost section mismatch
warnings:

WARNING: vmlinux.o(.text+0x4cff9b): Section mismatch: reference to .init.data:mode_option (between 'tdfxfb_setup' and 'getclkMHz')
WARNING: vmlinux.o(.text+0x4cffa8): Section mismatch: reference to .init.data: (between 'tdfxfb_setup' and 'getclkMHz')

[[email protected]: use __init, not __devinit]
Cc: Krzysztof Helt <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Cc: "Antonino A. Daplas" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/tdfxfb.c

index 057bdd593800c9c9f3b22fc5066ed7ba6fd20def..71e179ea5f95db581df36b0e544169b2de947436 100644 (file)
@@ -1342,7 +1342,7 @@ out_err:
 }
 
 #ifndef MODULE
-static void tdfxfb_setup(char *options)
+static void __init tdfxfb_setup(char *options)
 {
        char *this_opt;