Skip to contentSkip to conversation

rfkill-gpio: include linux/mod_devicetable.h

PATCH New Arnd Bergmann 1 participant 1 message Aug 13, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rfkill-gpio: include linux/mod_devicetable.h

One more driver is apparently broken by the recent change to linux/platform_device.h:

net/rfkill/rfkill-gpio.c: In function 'rfkill_gpio_acpi_probe':
net/rfkill/rfkill-gpio.c:82:29: error: dereferencing pointer to incomplete type 'const struct acpi_device_id'

Include linux/mod_devicetable.h to get the definition of the acpi_device_id structure.

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")
---
 net/rfkill/rfkill-gpio.c | 1 +
 1 file changed, 1 insertion(+)
net/rfkill/rfkill-gpio.c +1 -0
index 00192a996be0..0f8465852254 100644
@@ -20,6 +20,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/rfkill.h>
 #include <linux/platform_device.h>
 #include <linux/clk.h>
Signature · 1 line
2.18.0