]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Remove unusable governor dummies
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 18 Aug 2015 11:38:02 +0000 (13:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Aug 2015 23:54:43 +0000 (01:54 +0200)
commitad440bf40e2846966da44e885bb7d8a1f8384fa6
tree0f6d35c4dc8f92a08e08c5f29984dfa7037bd144
parentbe5ed55de011bddbb8ef7b3453edf07a26865beb
PM / Domains: Remove unusable governor dummies

The governor dummies for the !CONFIG_PM_GENERIC_DOMAINS case are
unusable, as a governors is always referred to by taking its address,
which you can't do with a literal NULL pointer.

I.e.

pm_genpd_init(genpd, &simple_qos_governor, false);

fails to compile with:

error: lvalue required as unary '&' operand

Hence just remove the governor dummies.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm_domain.h