]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: intel-lpss: Move linux/pm.h to the local header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Jan 2019 18:03:28 +0000 (20:03 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 18 Feb 2019 09:06:52 +0000 (09:06 +0000)
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>
drivers/mfd/intel-lpss-acpi.c
drivers/mfd/intel-lpss-pci.c
drivers/mfd/intel-lpss.h

index 7911b0a14a6d073c588fa79f22a96aeca6f1ae9c..6d9f03363ee7399a5741ea8cf001c8765e32e2f8 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/ioport.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/pm.h>
 #include <linux/pm_runtime.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
index 0e5282fc1467568aa3663be8872b1216d26a77da..cba2eb166650982055ac2ce36a08056c8aad7cde 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/pci.h>
-#include <linux/pm.h>
 #include <linux/pm_runtime.h>
 #include <linux/property.h>
 
index 865bbeaaf00ccb471a75b5c496ce1e43e58f5dbb..3a120fecd2dc3f6329ebd3ea1b35250a4b97f02f 100644 (file)
@@ -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;