tty: xuartps: Fix build error due to missing forward declaration
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Mon, 21 Oct 2013 23:41:00 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 16:26:11 +0000 (09:26 -0700)
commitd3641f64bc71765682754722fd42fae24366bb3a
tree59b2273f71fbc91dbf4ba1d13338d45562f6edd4
parentd54b181ea65682914cae0430f2a1efcbb6517dba
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>
drivers/tty/serial/xilinx_uartps.c