Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: amba-pl011: fix regression, causing an Oops on rmmod
A recent commit ef2889f "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>
- Loading branch information