media: video: tegra: imx091: fix power off sequence
Jihoon Bang [Wed, 26 Dec 2012 22:05:39 +0000 (14:05 -0800)]
Fix power-down sequence.
regulator_enable/regulator_disable wasn't paired.

Bug 1168663

Change-Id: I128bb1dfb9b85aa41000e0a3d65bc1d1d455446b
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/174334
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Wei Chen <wechen@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

drivers/media/video/tegra/imx091.c

index 00b92c9..47a3eca 100644 (file)
@@ -1786,7 +1786,7 @@ static int imx091_mode_able(struct imx091_info *info, bool mode_enable)
                dev_dbg(&info->i2c_client->dev, "%s streaming=%x\n",
                        __func__, info->mode_enable);
                if (!mode_enable)
-                       imx091_pm_dev_wr(info, NVC_PWR_STDBY);
+                       imx091_pm_dev_wr(info, NVC_PWR_OFF);
        }
        msleep(IMX091_WAIT_MS);
        return err;