backports: include of_device.h into of_platform.h
authorJohannes Berg <johannes.berg@intel.com>
Tue, 7 Feb 2017 13:12:31 +0000 (14:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 7 Feb 2017 14:07:21 +0000 (15:07 +0100)
Upstream does this now, and people rely on it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/linux/of_platform.h

index 3d83f4a5c208271286c697c2eb746fb8e865694d..5d422b17829118f10dd091dd60b522664a59a9d0 100644 (file)
@@ -3,6 +3,8 @@
 #include_next <linux/of_platform.h>
 #include <linux/version.h>
 #include <linux/of.h>
+/* upstream now includes this here and some people rely on it */
+#include <linux/of_device.h>
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) && !defined(CONFIG_OF_DEVICE)
 struct of_dev_auxdata;