tty: serial: altera_uart: Check for NULL platform_data in probe.
authorYuriy Kozlov <ykozlov@ptcusa.com>
Thu, 29 Mar 2012 07:55:27 +0000 (09:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 17:30:39 +0000 (10:30 -0700)
commitacede70d6561f2d042d9dbb153d9a3469479c0ed
tree6a458b7572de459a0c2ab9c82fc93b2ae351820f
parentef37ea34cac19ef46173b26ee47a102f3b987d1e
tty: serial: altera_uart: Check for NULL platform_data in probe.

Follow altera_jtag_uart.  This fixes a crash if there is a mistake in the DTS.

Signed-off-by: Yuriy Kozlov <ykozlov@ptcusa.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_uart.c