serial: sccnxp: Disable regulator on error
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 31 Jul 2013 10:56:29 +0000 (14:56 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 01:08:01 +0000 (18:08 -0700)
commite087ab74f3dd30105041e1c68db209f235b63042
treeba3ba6f1460bea74f234b7b408e64192b917668c
parent3fc1eb5fe5318d3eff9938240c29cc6ce2d6ce4e
serial: sccnxp: Disable regulator on error

The patch disables the regulator in case of errors, if we have it.
In addition, the patch adds support for deferred regulator probe and
makes error path are a bit clean.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sccnxp.c