aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2014-09-29 11:58:47 +0000
committerRafael J. Wysocki <[email protected]>2014-09-29 23:16:44 +0000
commitf48c767ce8951e30eb716b8ef69142d21aacbd1d (patch)
tree9c6fdc45eb5a6566abb205e20248bbb1ff936a7d /drivers/base/platform.c
parentPM / Domains: Remove legacy API for adding devices through DT (diff)
downloadkernel-f48c767ce8951e30eb716b8ef69142d21aacbd1d.tar.gz
kernel-f48c767ce8951e30eb716b8ef69142d21aacbd1d.zip
PM / Domains: Move dev_pm_domain_attach|detach() to pm_domain.h
The commit 46420dd73b80 (PM / Domains: Add APIs to attach/detach a PM domain for a device) started using errno values in pm.h header file. It also failed to include the header for these, thus it caused compiler errors. Instead of including the errno header to pm.h, let's move the functions to pm_domain.h, since it's a better match. Fixes: 46420dd73b80 (PM / Domains: Add APIs to attach/detach a PM domain for a device) Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Acked-by: Wolfram Sang <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r--drivers/base/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 904be3dc0908..b2afc29403f9 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -21,6 +21,7 @@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
+#include <linux/pm_domain.h>
#include <linux/idr.h>
#include <linux/acpi.h>
#include <linux/clk/clk-conf.h>