]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd : Fix dbx500 compilation error
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Apr 2012 15:55:48 +0000 (17:55 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Apr 2012 14:41:06 +0000 (16:41 +0200)
commitb18fd3afb333d6afe17bed6b52e6a6b9e34622c0
tree47e53fd4beb9fe2f6f2e2ed8e11e22305c8a2a1d
parent290a81738b770fdf04de8c71a4700238e3eb6227
mfd : Fix dbx500 compilation error

The ux500 default config enables the db5500 and the db8500.
The incoming cpuidle driver uses the 'prcmu_enable_wakeups'
and the 'prcmu_set_power_state' functions but these ones
are defined but not implemented for the db5500, leading to
an unresolved symbol error at link time. In order to compile,
we have to disable the db5500 support which is not acceptable
for the default config.

I noticed there are also some other functions which are
defined but not implemented.

This patch fix this by removing the functions definitions
and move out of the config section the empty functions which
are normally used when the DB550 config is disabled.
Only the functions which are not implemented are concerned
by this modification.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/linux/mfd/db5500-prcmu.h