tty: serial/samsung: fix modular build
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 Apr 2013 00:04:49 +0000 (02:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 20:14:37 +0000 (13:14 -0700)
commit84f57d9e3685500a7447fc09a6891ce218869174
tree20ca794a77ac0a2ec79d9507369bbd9cf95ae62b
parent9ee51f01eee84a108510ac2794b9a9dff8be6d3f
tty: serial/samsung: fix modular build

There are a few bugs in the samsung serial driver when built as a
loadable module, which makes the console code unavailable, as well as
giving no access to the 'printascii' early debug function. This adds
the appropriate compile time conditionals.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c
drivers/tty/serial/samsung.h