Skip to content

Commit

Permalink
rfkill-gpio: include linux/mod_devicetable.h
Browse files Browse the repository at this point in the history
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: ac31672 ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
arndb authored and jmberg-intel committed Aug 14, 2018
1 parent ec0c967 commit f623f75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/rfkill/rfkill-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f623f75

Please sign in to comment.