mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
media: i2c: imx412: Fix power_off ordering
commit9a199694c6
upstream. The enable path does - gpio - clock The disable path does - gpio - clock Fix the order on the power-off path so that power-off and power-on have the same ordering for clock and gpio. Fixes:9214e86c0c
("media: i2c: Add imx412 camera sensor driver") Cc: stable@vger.kernel.org Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7c1ca2477b
commit
2139d45a17
1 changed files with 2 additions and 2 deletions
|
@ -1040,10 +1040,10 @@ static int imx412_power_off(struct device *dev)
|
|||
struct v4l2_subdev *sd = dev_get_drvdata(dev);
|
||||
struct imx412 *imx412 = to_imx412(sd);
|
||||
|
||||
gpiod_set_value_cansleep(imx412->reset_gpio, 1);
|
||||
|
||||
clk_disable_unprepare(imx412->inclk);
|
||||
|
||||
gpiod_set_value_cansleep(imx412->reset_gpio, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue