Re: Re: [PATCH] media: platform: sti: hva: Fix runtime PM imbalance on error

From: dinghao . liu
Date: Mon Jun 08 2020 - 21:30:12 EST


Hi Hans,
> err_pm:
> pm_runtime_put(dev);
>
> Shouldn't that be pm_runtime_put_sync()?
>
> I'm not pm expert, but it does look odd.
>

I checked the implementation of these two APIs before
and found they were exactly the same. So I think it's
fine to keep using pm_runtime_put().

Regards,
Dinghao