driver: tty: add missing unregister in err case
driver: tty: add missing unregister in err case

when platform_driver_register broken, we should unregister ucc_uart_driver

Signed-off-by: Libo chen <03ac321f4fc44d5558b43fe86a753e021008f32d@huawei.com>
Acked-by: Timur Tabi <4ea348ebd818e67772cb0086d44dc1b57ba54129@tabi.org>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs