On Sun, Apr 24, 2016 at 1:49 AM, Laurent Pinchart
<laurent.pinchart+rene...@ideasonboard.com> wrote:
> Replace the manual refcount and clock management code by runtime PM.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+rene...@ideasonboard.com>
> ---
>  drivers/media/platform/Kconfig          |   1 +
>  drivers/media/platform/vsp1/vsp1.h      |   3 -
>  drivers/media/platform/vsp1/vsp1_drv.c  | 101 
> ++++++++++++++++----------------
>  drivers/media/platform/vsp1/vsp1_pipe.c |   2 +-
>  4 files changed, 54 insertions(+), 53 deletions(-)
>
> diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
> index f453910050be..28d0db102c0b 100644
> --- a/drivers/media/platform/Kconfig
> +++ b/drivers/media/platform/Kconfig
> @@ -264,6 +264,7 @@ config VIDEO_RENESAS_VSP1
>         tristate "Renesas VSP1 Video Processing Engine"
>         depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA
>         depends on (ARCH_RENESAS && OF) || COMPILE_TEST
> +       depends on PM

PM is always enabled since commits 2ee98234b88174f2 ("arm64: renesas: Enable PM
and PM_GENERIC_DOMAINS for SoCs with PM Domains") and 71d076ceb245f0d9 ("ARM:
shmobile: Enable PM and PM_GENERIC_DOMAINS for SoCs with PM Domains").

Even before that, drivers/sh/pm_runtime.c would have taken care of
enabling the clocks for you.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to