]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Sun, 22 Apr 2012 22:31:00 +0000 (15:31 -0700)
commit41cbea2b945f478ecf7128675e9e0e85b0dc2712
treef50fd183cb459f0f5194844b32f06f8899edf0c1
parentc48fca494bc5af541161a95494453cafebda158f
tty: serial: altera_uart: Check for NULL platform_data in probe.

commit acede70d6561f2d042d9dbb153d9a3469479c0ed upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_uart.c