[POWERPC] of_serial: add port type checking
commite34b9c94b6e8d63f94387f5148434db5f8f79084
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Thu, 31 May 2007 09:33:04 +0000 (31 19:33 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 10 Jul 2007 11:53:42 +0000 (10 21:53 +1000)
tree64b49516ca85fcf59ecf7504045b310722167c37
parent1558f9b44e1c6b5eba46f58214851fd24285641f
[POWERPC] of_serial: add port type checking

Currently, of_serial driver supports only 8250 compatible ports, but
prepares that others can easily be added.  Yet unregister routine
assumes port is 8250.  This corrects unregister routine to check
port type.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/serial/of_serial.c