diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2013-09-11 18:25:44 +0800 |
---|---|---|
committer | Liu Ying <Ying.Liu@freescale.com> | 2013-09-12 09:58:29 +0800 |
commit | a0ff4d112dcd8a71547f2b95731f2fedb21a77e4 (patch) | |
tree | b45ff7f96543df4a69d7f9d3bd97309b991d9a51 /drivers | |
parent | d5b3e378553d7bde4debc2b78fac6972c77ad815 (diff) |
ENGR00279226 media: ov5642: correct io_regulator sanity check
The following commit introduced a wrong sanity check for
the io_regulator which is intended to be got from device tree.
a364635a535705a8c16df49ff9bc7b9362b083ec
This patch corrects the sanity check.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Diffstat (limited to 'drivers')
-rwxr-xr-x | drivers/media/platform/mxc/capture/ov5642.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/mxc/capture/ov5642.c b/drivers/media/platform/mxc/capture/ov5642.c index e399c19fcece..04228655712a 100755 --- a/drivers/media/platform/mxc/capture/ov5642.c +++ b/drivers/media/platform/mxc/capture/ov5642.c @@ -3054,7 +3054,7 @@ static int ov5642_power_on(struct device *dev) int ret = 0; io_regulator = devm_regulator_get(dev, "DOVDD"); - if (io_regulator) { + if (!IS_ERR(io_regulator)) { regulator_set_voltage(io_regulator, OV5642_VOLTAGE_DIGITAL_IO, OV5642_VOLTAGE_DIGITAL_IO); |