summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
diff options
context:
space:
mode:
authorGabor Juhos2013-08-28 17:08:39 +0200
committerGreg Kroah-Hartman2013-08-29 01:00:42 +0200
commit124155351331a53feb00d10874f0c620405fd385 (patch)
treed07b24b0a57e132893704faa806c9472112d2822 /Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
parenttty: ar933x_uart: remove superfluous assignment of ar933x_uart_driver.nr (diff)
downloadkernel-qcow2-linux-124155351331a53feb00d10874f0c620405fd385.tar.gz
kernel-qcow2-linux-124155351331a53feb00d10874f0c620405fd385.tar.xz
kernel-qcow2-linux-124155351331a53feb00d10874f0c620405fd385.zip
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 <juhosg@openwrt.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/fsl-imx-uart.txt')
0 files changed, 0 insertions, 0 deletions