OSDN Git Service

media: exynos-gsc: don't resume at remove time
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 27 Apr 2021 09:43:54 +0000 (11:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 May 2021 09:36:33 +0000 (11:36 +0200)
commite6695c89b3d4595f60c9fe40e0938e085d15dd20
tree40c119bd19f0c4584ef9a0aa5c6065f0448b03af
parent62c90446868b439929cb04395f04a709a64ae04b
media: exynos-gsc: don't resume at remove time

Calling pm_runtime_get_sync() at driver's removal time is not
needed, as this will resume PM runtime. Also, the PM runtime
code at pm_runtime_disable() already calls it, if it detects
the need.

So, change the logic in order to disable PM runtime earlier.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/exynos-gsc/gsc-core.c