diff options
author | Soren Brinkmann | 2013-10-22 01:41:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-10-29 17:26:11 +0100 |
commit | d3641f64bc71765682754722fd42fae24366bb3a (patch) | |
tree | 59b2273f71fbc91dbf4ba1d13338d45562f6edd4 /drivers/tty/tty_buffer.c | |
parent | tty: xuartps: Fix "may be used uninitialized" build warning (diff) | |
download | kernel-qcow2-linux-d3641f64bc71765682754722fd42fae24366bb3a.tar.gz kernel-qcow2-linux-d3641f64bc71765682754722fd42fae24366bb3a.tar.xz kernel-qcow2-linux-d3641f64bc71765682754722fd42fae24366bb3a.zip |
tty: xuartps: Fix build error due to missing forward declaration
If CONFIG_PM_SLEEP is enabled and CONFIG_SERIAL_XILINX_PS_UART_CONSOLE
is not, a forward declaration of the uart_driver struct is not
included, leading to a build error due to an undeclared variable.
Fixing this by moving the definition of the struct uart_driver before
the definition of the suspend/resume callbacks.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions