ARM: shmobile: R-Mobile: Generalize adding/looking up special PM domains
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 14 Jan 2015 12:11:21 +0000 (13:11 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 16 Jan 2015 02:02:37 +0000 (11:02 +0900)
commit60e26435623001424f1c62dde26edb614b29d8ae
tree21c612d8c4d2732d50d8bed55b8806e90e9bdfbb
parente43ee86efb68808c8847de17e58f5427b006363c
ARM: shmobile: R-Mobile: Generalize adding/looking up special PM domains

Make adding special PM domains to an array, and looking them up
later, more generic, so it can be used for all special hardware blocks.
The type of PM domain is also stored, so rmobile_setup_pm_domain() can
use a switch() statement instead of a chain of if/else statements.

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