summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/samsung.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-04-11 02:04:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-11 13:14:37 -0700
commit84f57d9e3685500a7447fc09a6891ce218869174 (patch)
tree20ca794a77ac0a2ec79d9507369bbd9cf95ae62b /drivers/tty/serial/samsung.h
parent9ee51f01eee84a108510ac2794b9a9dff8be6d3f (diff)
downloadop-kernel-dev-84f57d9e3685500a7447fc09a6891ce218869174.zip
op-kernel-dev-84f57d9e3685500a7447fc09a6891ce218869174.tar.gz
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>
Diffstat (limited to 'drivers/tty/serial/samsung.h')
-rw-r--r--drivers/tty/serial/samsung.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h
index 1a4bca3..00a499e 100644
--- a/drivers/tty/serial/samsung.h
+++ b/drivers/tty/serial/samsung.h
@@ -76,7 +76,9 @@ struct s3c24xx_uart_port {
#define wr_regb(port, reg, val) __raw_writeb(val, portaddr(port, reg))
#define wr_regl(port, reg, val) __raw_writel(val, portaddr(port, reg))
-#ifdef CONFIG_SERIAL_SAMSUNG_DEBUG
+#if defined(CONFIG_SERIAL_SAMSUNG_DEBUG) && \
+ defined(CONFIG_DEBUG_LL) && \
+ !defined(MODULE)
extern void printascii(const char *);
OpenPOWER on IntegriCloud