Skip to contentSkip to conversation

nozomi: fix section when HOTPLUG=n

PATCH New Randy Dunlap 1 participant 1 message Jun 26, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nozomi: fix section when HOTPLUG=n

From: Randy Dunlap <[email protected]>

When CONFIG_HOTPLUG=n, this function needs to be present instead of discarded.

WARNING: drivers/built-in.o(.text+0x2045f): Section mismatch: reference to .exit.text:tty_exit (between 'nozomi_card_exit' and 'card_type_show')

---
 drivers/char/nozomi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/nozomi.c +1 -1
@@ -1636,7 +1636,7 @@ exit:
 	up(&port->tty_sem);
 }
 
-static void __devexit tty_exit(void)
+static void tty_exit(void)
 {
 	struct nozomi *dc = my_dev;
 	int i, ret;