diff options
author | Albin Tonnerre <albin.tonnerre@gmail.com> | 2009-07-29 22:04:18 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-30 02:10:37 (GMT) |
commit | 8da14b5fc32368f582df09fe9c0bec2507868583 (patch) | |
tree | f869f45c0a25a73d7a68ba8167218e5cf2d3af4f /include | |
parent | 534acc057b5a08ec33fa57cdd2f5a09ef124e7f2 (diff) | |
download | linux-fsl-qoriq-8da14b5fc32368f582df09fe9c0bec2507868583.tar.xz |
drivers/serial/atmel_serial.c: fix compile when CONFIG_SERIAL_ATMEL=Y and CONFIG_SERIAL_ATMEL_CONSOLE=N
When SERIAL_ATMEL_CONSOLE is disabled, ATMEL_CONSOLE_DEVICE is set to
NULL, and trying to access ATMEL_CONSOLE_DEVICE->flags in
atmel_serial_probe makes the compile fail. This fixes the issue by only
accessing it if CONFIG_SERIAL_ATMEL_CONSOLE is defined
Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions