diff mbox series

hte: tegra-194: Use proper includes

Message ID 20230113094747.247427-1-linus.walleij@linaro.org
State New
Headers show
Series hte: tegra-194: Use proper includes | expand

Commit Message

Linus Walleij Jan. 13, 2023, 9:47 a.m. UTC
The test driver uses the gpiod consumer API so include the right
<linux/gpio/consumer.h> header. This may cause a problem with
struct of_device_id being implcitly pulled in by the legacy
header <linux/gpio.h> so include <linux/mod_device_table.h>
explicitly as well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/hte/hte-tegra194-test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c
index 5d776a185bd6..a255ec3f8e8d 100644
--- a/drivers/hte/hte-tegra194-test.c
+++ b/drivers/hte/hte-tegra194-test.c
@@ -6,10 +6,11 @@ 
  */
 
 #include <linux/err.h>
+#include <linux/mod_device_table.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/timer.h>
 #include <linux/platform_device.h>
 #include <linux/workqueue.h>