Skip to contentSkip to conversation

rivafb_setup() must be __devinit

PATCH New Adrian Bunk 1 participant 1 message Jul 10, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rivafb_setup() must be __devinit

This patch fixes the following section mismatch:

<-- snip -->

...
MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x57106): Section mismatch: reference to .init.text:rivafb_setup (between 'rivafb_init' and 'nv3Busy')
...

<-- snip -->

---

drivers/video/riva/fbdev.c renamed from drivers/video/riva/fbdev.c.old +1 -1
@@ -2146,7 +2146,7 @@
  * ------------------------------------------------------------------------- */
 
 #ifndef MODULE
-static int __init rivafb_setup(char *options)
+static int __devinit rivafb_setup(char *options)
 {
 	char *this_opt;