]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
serial: 8250: Unlink uart console ptr if console setup fails
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 22:39:34 +0000 (14:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 22:07:04 +0000 (14:07 -0800)
If console setup fails (eg., there is no valid port at that index),
unlink the console ptr; otherwise, when the driver unloads, the
console will be unregistered (even though setup, and thus registration,
failed) and a console disabled message will be printed.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found