Browse Source

serial: s3c: Fix build of header without serial_core.h preinclusion

serial_s3c.h uses upf_t which is defined in serial_core.h but does not
include that itself meaning that users which include serial_s3c.h by
itself don't build.

Signed-off-by: Mark Brown <broonie@linaro.org>
[t.figa: Moved inclusion under #ifndef __ASSEMBLY__ to fix mach-exynos]
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Mark Brown 11 năm trước cách đây
mục cha
commit
cf559ab94e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      include/linux/serial_s3c.h

+ 2 - 0
include/linux/serial_s3c.h

@@ -233,6 +233,8 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/serial_core.h>
+
 /* configuration structure for per-machine configurations for the
  * serial port
  *