sc16is7xx: remove ports on probe error path
authorJakub Kicinski <kubakici@wp.pl>
Mon, 16 Mar 2015 23:28:46 +0000 (00:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 21:38:36 +0000 (22:38 +0100)
commit11b03ea0c1ef1cd2df3e7ea0437a13e2dfb65f60
tree404057d7051d97b0d24a1a697d814e8295d79f53
parent1cf94d3a115ad118a36cba2c9a5383acda94e544
sc16is7xx: remove ports on probe error path

If ports are not explicitly removed on the error path
the device will not get properly unregistered leaving
/dev/ttySC* nodes in the filesystem.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c