mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
media: platform: Delete the resetting hardware flow in the system PM ops
Delete the resetting hardware flow in suspend and resume function because that resetting operation will be done in device_run(). Reviewed-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Xia Jiang <xia.jiang@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
5827e4b14e
commit
1847f68e39
@ -1191,7 +1191,6 @@ static __maybe_unused int mtk_jpeg_pm_suspend(struct device *dev)
|
|||||||
{
|
{
|
||||||
struct mtk_jpeg_dev *jpeg = dev_get_drvdata(dev);
|
struct mtk_jpeg_dev *jpeg = dev_get_drvdata(dev);
|
||||||
|
|
||||||
mtk_jpeg_dec_reset(jpeg->dec_reg_base);
|
|
||||||
mtk_jpeg_clk_off(jpeg);
|
mtk_jpeg_clk_off(jpeg);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -1202,7 +1201,6 @@ static __maybe_unused int mtk_jpeg_pm_resume(struct device *dev)
|
|||||||
struct mtk_jpeg_dev *jpeg = dev_get_drvdata(dev);
|
struct mtk_jpeg_dev *jpeg = dev_get_drvdata(dev);
|
||||||
|
|
||||||
mtk_jpeg_clk_on(jpeg);
|
mtk_jpeg_clk_on(jpeg);
|
||||||
mtk_jpeg_dec_reset(jpeg->dec_reg_base);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user