[PATCH v2 04/17] driver: core: Include headers for acpi_device_id and of_device_id for struct device_driver

From: Uwe Kleine-König (The Capable Hub)

Date: Fri Jun 26 2026 - 14:05:49 EST


struct device_driver contains pointers of type struct of_device_id* and
struct acpi_device_id* but doesn't ensure these are defined. To make the
header self-contained add the (very lightweight) includes that contain
the respective definitions.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
include/linux/device/driver.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/device/driver.h b/include/linux/device/driver.h
index 38048e74d10a..5323157571a5 100644
--- a/include/linux/device/driver.h
+++ b/include/linux/device/driver.h
@@ -19,6 +19,8 @@
#include <linux/pm.h>
#include <linux/device/bus.h>
#include <linux/module.h>
+#include <linux/mod_device_id/acpi.h>
+#include <linux/mod_device_id/of.h>

/**
* enum probe_type - device driver probe type to try
--
2.47.3