hte: tegra: fix 'struct of_device_id' build error
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Dec 2022 16:46:19 +0000 (17:46 +0100)
committerDipen Patel <dipenp@nvidia.com>
Wed, 26 Apr 2023 22:44:06 +0000 (15:44 -0700)
Without the extra #include, this driver produces a build failure
in some configurations.

drivers/hte/hte-tegra194-test.c:96:34: error: array type has incomplete element type 'struct of_device_id'
   96 | static const struct of_device_id tegra_hte_test_of_match[] = {

Fixes: 9a75a7cd03c9 ("hte: Add Tegra HTE test driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
drivers/hte/hte-tegra194-test.c

index d79c28a..98d1fd6 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/err.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>