ARM: shmobile: R-Mobile: Use CPG/MSTP Clock Domain attach/detach helpers
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Aug 2015 12:28:17 +0000 (14:28 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 18 Sep 2015 00:12:51 +0000 (09:12 +0900)
commit8b98d74780ab70147d40400c36059c16c1aea4da
treea2ec94095b7e4bec6e5f06b2c6a95118901c85a9
parente233d74c30f48108b7affb4e76bfc8f3c76b68ce
ARM: shmobile: R-Mobile: Use CPG/MSTP Clock Domain attach/detach helpers

The R-Mobile PM Domain driver manages both power domains and a clock
domain.

The clock domain part is very similar to the CPG/MSTP Clock Domain,
which is used on shmobile SoCs without device power domains, except for
the way how clocks suitable for power management are selected:
  - The former uses the first clock tied to the device through the NULL
    con_id, which is a relic from the legacy pm_clk_notifier-based
    method in drivers/sh/pm_runtime.c,
  - The latter looks for suitable clocks in DT, which is more
    future-proof.

All platforms using this driver are now supported in DT-based ARM
multi-platform builds only, hence switch to using the CPG/MSTP Clock
Domain helpers.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/pm-rmobile.c