OMAP clockdomain/powerdomain: remove runtime register/unregister
authorPaul Walmsley <paul@pwsan.com>
Wed, 27 Jan 2010 03:13:00 +0000 (20:13 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 27 Jan 2010 03:13:00 +0000 (20:13 -0700)
commite909d62a8afda7a224a7e322cf2f387d69ca771f
tree7d082ca294ac927fc3599900f291d7ccdc80e713
parent3d309cdef37e238c108cade95a8192d5688bd56a
OMAP clockdomain/powerdomain: remove runtime register/unregister

OMAP clockdomains and powerdomains are currently defined statically,
only registered at boot, and never unregistered, so we can remove the
unregister function and the locking.   A variant of this was originally
suggested a while ago by Dmitry Baryshkov <dbaryshkov@gmail.com>.
This version of this patch contains an additional fix from Kevin Hilman
<khilman@deeprootsystems.com> to address one of the pwrdm_for_each_nolock()
users in mach-omap2/pm-debug.c.   Thanks Kevin.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/clockdomain.c
arch/arm/mach-omap2/pm-debug.c
arch/arm/mach-omap2/powerdomain.c
arch/arm/plat-omap/include/plat/clockdomain.h
arch/arm/plat-omap/include/plat/powerdomain.h