serial: bfin_5xx: fix building as module when early printk is enabled
commit499c53541b860b20e00ab2c85b50cdb813c3606c
authorMike Frysinger <vapier@gentoo.org>
Thu, 6 Aug 2009 22:20:05 +0000 (6 15:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:31:29 +0000 (5 09:31 -0700)
tree65f060420c8f8b1bf7e2ce93cfbf9e5d139ecac1
parentfc5c8874e71764e58f4aaa11223c9cf62d9028ec
serial: bfin_5xx: fix building as module when early printk is enabled

commit 0271edd4b1b16f255162029359bb69c1ee4d9c3b upstream.

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 <vapier@gentoo.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/bfin_5xx.c