ARM: prima2: build reset code standalone
authorArnd Bergmann <arnd@arndb.de>
Tue, 11 Mar 2014 09:53:31 +0000 (10:53 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 17 Mar 2014 18:46:12 +0000 (19:46 +0100)
The prima2 platform code currently depends on the rstc
implementation and that in turn depends on the reset
controller framework. This removes the platform dependency
by letting the driver access arm_pm_restart directly
to turn the driver into a standalone entity, and also
removes the dependency on the reset controller framework
by using "if (IS_ENABLED(CONFIG_RESET_CONTROLLER))". This
will cause all code that is used for the reset controller
to be dropped by the compiler if the framework is disabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-prima2/common.c
arch/arm/mach-prima2/common.h
arch/arm/mach-prima2/rstc.c

Simple merge
Simple merge
Simple merge