aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/mfd/intel-lpss.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-01-24 20:03:28 +0200
committerLee Jones <lee.jones@linaro.org>2019-02-18 09:06:52 +0000
commit16b7a09bb6fdf5d83bd22fd930c7e3c1e4f32911 (patch)
treea03cc71c57dfa67bad798a07ca76118f6c812777 /drivers/mfd/intel-lpss.h
parentmfd: cros_ec_dev: Return number of bytes read with CROS_EC_DEV_IOCRDMEM (diff)
downloadwireguard-linux-16b7a09bb6fdf5d83bd22fd930c7e3c1e4f32911.tar.xz
wireguard-linux-16b7a09bb6fdf5d83bd22fd930c7e3c1e4f32911.zip
mfd: intel-lpss: Move linux/pm.h to the local header
We now using a common macro for PM operations in Intel LPSS driver, and, since that macro relies on the definition and macro from linux/pm.h header file, it's logical to include it directly in intel-lpss.h. Otherwise it's a bit fragile and requires a proper ordering of header inclusion in C files. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/intel-lpss.h')
-rw-r--r--drivers/mfd/intel-lpss.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/intel-lpss.h b/drivers/mfd/intel-lpss.h
index 865bbeaaf00c..3a120fecd2dc 100644
--- a/drivers/mfd/intel-lpss.h
+++ b/drivers/mfd/intel-lpss.h
@@ -14,6 +14,8 @@
#ifndef __MFD_INTEL_LPSS_H
#define __MFD_INTEL_LPSS_H
+#include <linux/pm.h>
+
struct device;
struct resource;
struct property_entry;