tty: serial: altera_uart: Handle pdev->id == -1 in altera_uart_remove
authorTobias Klauser <tklauser@distanz.ch>
Wed, 9 Feb 2011 09:56:52 +0000 (10:56 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 19:31:58 +0000 (11:31 -0800)
commite96fabd8791aad30a3c8a03919893ae3e2e3df25
treee83e2647b1dcf240d24bf85b6e0906be2a4a0440
parentd637837583163a1a70331ce48097f697cac85e32
tty: serial: altera_uart: Handle pdev->id == -1 in altera_uart_remove

Commit 6b5756f176568a710d008d3b478128fafb6707f0 introduced the
possibility for pdev->id being -1 but the change was not done equally in
altera_uart_remove. This patch fixes this.

Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/altera_uart.c