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:
Xia Jiang 2020-08-14 09:11:39 +02:00 committed by Mauro Carvalho Chehab
parent 5827e4b14e
commit 1847f68e39

View File

@ -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;
} }