Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Lee Jones
16b7a09b c1778e58

+2 -2
-1
drivers/mfd/intel-lpss-acpi.c
··· 15 15 #include <linux/ioport.h> 16 16 #include <linux/kernel.h> 17 17 #include <linux/module.h> 18 - #include <linux/pm.h> 19 18 #include <linux/pm_runtime.h> 20 19 #include <linux/platform_device.h> 21 20 #include <linux/property.h>
-1
drivers/mfd/intel-lpss-pci.c
··· 15 15 #include <linux/kernel.h> 16 16 #include <linux/module.h> 17 17 #include <linux/pci.h> 18 - #include <linux/pm.h> 19 18 #include <linux/pm_runtime.h> 20 19 #include <linux/property.h> 21 20
+2
drivers/mfd/intel-lpss.h
··· 14 14 #ifndef __MFD_INTEL_LPSS_H 15 15 #define __MFD_INTEL_LPSS_H 16 16 17 + #include <linux/pm.h> 18 + 17 19 struct device; 18 20 struct resource; 19 21 struct property_entry;