Skip to content

Commit

Permalink
serial: serial_core.h needs console.h included first
Browse files Browse the repository at this point in the history
Fixes these build errors:

In file included from drivers/tty/serial/sccnxp.c:20:0:
include/linux/serial_core.h: In function 'uart_handle_break':
include/linux/serial_core.h:543:30: error: dereferencing pointer to incomplete type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Stephen Rothwell authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent b69200f commit d83b542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sccnxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

#include <linux/module.h>
#include <linux/device.h>
#include <linux/console.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/io.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/console.h>
#include <linux/platform_device.h>
#include <linux/platform_data/sccnxp.h>

Expand Down

0 comments on commit d83b542

Please sign in to comment.