From: Gabor Juhos Date: Wed, 28 Aug 2013 15:08:39 +0000 (+0200) Subject: tty: ar933x_uart: use config_enabled() macro to clean up ifdefs X-Git-Tag: v3.12-rc1~182^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=124155351331a53feb00d10874f0c620405fd385;p=pandora-kernel.git tty: ar933x_uart: use config_enabled() macro to clean up ifdefs Add a new ar933x_uart_console_enabled() helper function which uses the config_enable(CONFIG_SERIAL_AR933X_CONSOLE) macro to decide if the console support is enabled or not. Remove the 'ifdef CONFIG_SERIAL_AR933X_CONSOLE' statements and use the new helper function to conditionally enable console support instead. If CONFIG_SERIAL_AR933X_CONSOLE is not enabled, the new helper function will become a null stub which allows the compiler to optimize out the unused console specific functions/variables. Signed-off-by: Gabor Juhos Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed