From: Randy Dunlap Date: Wed, 6 Feb 2008 09:39:19 +0000 (-0800) Subject: tdfxfb: fix section mismatch warnings X-Git-Tag: v2.6.25-rc1~582 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0ce85eb8824679cd9e7b3b12202e2bf54f1f3e2c;p=linux-2.6-omap-h63xx.git tdfxfb: fix section mismatch warnings 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') [krzysztof.h1@poczta.fm: use __init, not __devinit] Cc: Krzysztof Helt Signed-off-by: Randy Dunlap Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index 057bdd59380..71e179ea5f9 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c @@ -1342,7 +1342,7 @@ out_err: } #ifndef MODULE -static void tdfxfb_setup(char *options) +static void __init tdfxfb_setup(char *options) { char *this_opt;