Skip to content
Commit 892bb6ec authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: hantro: do a PM resume earlier



The device_run() first enables the clock and then
tries to resume PM runtime, checking for errors.

Well, if for some reason the pm_runtime can not resume,
it would be better to detect it beforehand.

So, change the order inside device_run().

Reviewed-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
Fixes: 775fec69 ("media: add Rockchip VPU JPEG encoder driver")
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent dd97908e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment