]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Don't rely on platform data flags when not needed
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 11 Jan 2017 14:43:24 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 13:17:04 +0000 (14:17 +0100)
commite0cb88c8e6bb4d0e94e3c13afdfc8d5e3dbe55ed
treef7cfe5ce7b9bbf857624d6345d6194295f79c08a
parenta9f10839ef64fbbdcbcff7b002e3d8574cbbc873
serial: sh-sci: Don't rely on platform data flags when not needed

The UPF_BOOT_AUTOCONF platform data flag is set by all platforms,
hardcode it.

The UPF_IOREMAP flag is set by a single SH platform and thus needs to be
kept. However, for ARM platforms, we can base the decision on whether an
OF node is present and bypass the platform data flags completely.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c