headers: fix linux/mod_devicetable.h inclusions
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Jul 2018 15:19:02 +0000 (17:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jul 2018 06:47:02 +0000 (08:47 +0200)
A couple of drivers produced build errors after the mod_devicetable.h
header was split out from the platform_device one, e.g.

drivers/media/platform/davinci/vpbe_osd.c:42:40: error: array type has incomplete element type 'struct platform_device_id'
drivers/media/platform/davinci/vpbe_venc.c:42:40: error: array type has incomplete element type 'struct platform_device_id'

This adds the inclusion where needed.

Fixes: ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/qemu_fw_cfg.c
drivers/media/platform/davinci/vpbe_osd.c
drivers/media/platform/davinci/vpbe_venc.c
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c
drivers/media/platform/sti/hva/hva-v4l2.c
drivers/platform/x86/intel_punit_ipc.c

index 14fedbeca7248030c9484fd6b9285bfabf45bcfb..039e0f91dba8f5229da95bbaf6fcc9fc55349d27 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/acpi.h>
 #include <linux/slab.h>
index 7f610320426df966c6354f10dd82ece0efbd601f..c551a25d90d942a1baf2cb4b1a2684f628bced68 100644 (file)
@@ -18,6 +18,7 @@
  *
  */
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/kernel.h>
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
index ba157827192c661e2321f8b0ae6cf71a976836c8..ddcad7b3e76c21d07609a3938e401052940f853a 100644 (file)
@@ -11,6 +11,7 @@
  * GNU General Public License for more details.
  */
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/ctype.h>
index 49bbd1861d3a3f5d289825ff4e76921d7eaf0ce1..d1101e1decaa2f4bfdb1d89eccd49ce565f9d6d7 100644 (file)
@@ -14,6 +14,7 @@
  */
 #include <linux/clk.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/slab.h>
index 6b2ce479584e9123af085aed83a2b5aa052050c8..7e8553c523219c501e93f45817f78358df7e83da 100644 (file)
@@ -14,6 +14,7 @@
  */
 #include <linux/clk.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/slab.h>
index 15080cb00fa7ed21215769557b3bf425ec1dac26..5a807c7c5e79195da386232d13d56e37015ce868 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <media/v4l2-event.h>
index b5b890127479f8f586880762828bbd447a383ddf..f1afc0ebbc68939f4ff2dc62df5248d583e038ce 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/acpi.h>
 #include <linux/delay.h>
 #include <linux/bitops.h>