]> git.baikalelectronics.ru Git - kernel.git/commit
serial: amba-pl011: fix regression, causing an Oops on rmmod
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Sat, 5 Apr 2014 14:31:08 +0000 (16:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 21:31:13 +0000 (14:31 -0700)
commitd687996f43aaeefc934ba8dc8b4903f45ec4667e
tree1fc23712d3dc3ce9d7453ba0427f5a6075651869
parent9d0ced9310fd04aa54e62a5324ee43c5b495a894
serial: amba-pl011: fix regression, causing an Oops on rmmod

A recent commit e6bc87a8a62b20b29013c91fbaaad7cbdd87bed5 "serial: pl011:
Move uart_register_driver call to device probe" introduced a regression,
causing the pl011 driver to Oops if more than 1 port have been probed. Fix
the Oops by only calling uart_unregister_driver() once after the last port
has been removed.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c