]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit031d2fc85dc04e022f7570589e3c6ae9df483148
treeba3ba6f1460bea74f234b7b408e64192b917668c
parent7f0d1c61ebe75d0a13ed1a4b5e76f30aff10522e
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