From: Thomas Betker Date: Wed, 11 Mar 2015 21:39:28 +0000 (+0100) Subject: serial: xuartps: Fix check in console_setup(). X-Git-Tag: omap-for-v4.1/fixes-rc1~74^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=136debf707d2b3cd8e74d0fff8e29d11a78bf5c2;p=pandora-kernel.git serial: xuartps: Fix check in console_setup(). cdns_uart_console_setup() checks port->mapbase != 0, but the port may not be initialized yet even if this condition is met [e.g., ioremap() may have failed]. Check port->membase != NULL instead, similar to cdns_early_console_setup(). Signed-off-by: Thomas Betker Reviewed-by: Michal Simek Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed