serial: sh-sci: fix SH-Mobile SH breakage
authorMagnus Damm <damm@opensource.se>
Tue, 16 Mar 2010 11:21:07 +0000 (11:21 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 23 Mar 2010 04:23:15 +0000 (13:23 +0900)
commit8d099d4446fcb23ca6cc054bde3c35b417e29b3b
treeebbbd5a429d4e90ec63b95af9b8d439fcd4b9c8c
parent67eaa3e4fb29a758f92c9296ca006264a034e9c2
serial: sh-sci: fix SH-Mobile SH breakage

The follwing commit breaks SH-Mobile on non-ARM platforms:
"8a77b8d serial: sh-sci: Support ARM-based SH-Mobile CPUs."

The commit assumed that CONFIG_ARCH_SHMOBILE only was set
on ARM platforms, but it turns out that this kconfig is also
set by all SH-based SoCs. Sh7724 and other older SH-Mobile
SoCs are all broken without this fix.

This patch converts the "defined(CONFIG_ARCH_SHMOBILE)" into
one "defined()" per SoC model - similar to existing SH code.

Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/serial/sh-sci.h