serial: bfin_5xx: fix building as module when early printk is enabled
authorMike Frysinger <[email protected]>
Thu, 6 Aug 2009 22:20:05 +0000 (15:20 -0700)
committerLive-CD User <[email protected]>
Sat, 19 Sep 2009 20:13:09 +0000 (13:13 -0700)
Since early printk only makes sense/works when the serial driver is built
into the kernel, disable the option for this driver when it is going to be
built as a module.  Otherwise we get build failures due to the ifdef
handling.

Signed-off-by: Mike Frysinger <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/serial/bfin_5xx.c

index b4a7650af696f7bb80834e6e1994c669d0a399c8..4fff4e52403479b46f40daad4bc2a6f8b47b506f 100644 (file)
 # undef CONFIG_EARLY_PRINTK
 #endif
 
+#ifdef CONFIG_SERIAL_BFIN_MODULE
+# undef CONFIG_EARLY_PRINTK
+#endif
+
 /* UART name and device definitions */
 #define BFIN_SERIAL_NAME       "ttyBF"
 #define BFIN_SERIAL_MAJOR      204