diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2026-02-17 16:56:17 +0100 |
|---|---|---|
| committer | Thomas Zimmermann <tzimmermann@suse.de> | 2026-02-20 14:38:20 +0100 |
| commit | 086831fbd2a50384282a486014529893833f68c4 (patch) | |
| tree | 0433e08604ac5f50322138718271bf2fe0bea87d /drivers | |
| parent | b44308c864b86ebcc03d73ae74bb9ac3ce1c5d4b (diff) | |
firmware: google: Clean up include statements in coreboot_table.h
Include <linux/mod_devicetable.h> from source files and only forward-
declare struct coreboot_device_id in coreboot_table.h.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Acked-by: Julius Werner <jwerner@chromium.org>
Link: https://patch.msgid.link/20260217155836.96267-8-tzimmermann@suse.de
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/firmware/google/cbmem.c | 1 | ||||
| -rw-r--r-- | drivers/firmware/google/coreboot_table.c | 1 | ||||
| -rw-r--r-- | drivers/firmware/google/coreboot_table.h | 3 | ||||
| -rw-r--r-- | drivers/firmware/google/framebuffer-coreboot.c | 1 | ||||
| -rw-r--r-- | drivers/firmware/google/memconsole-coreboot.c | 1 | ||||
| -rw-r--r-- | drivers/firmware/google/vpd.c | 1 |
6 files changed, 7 insertions, 1 deletions
diff --git a/drivers/firmware/google/cbmem.c b/drivers/firmware/google/cbmem.c index 54c3b8b05e5d..3397bacdfdbe 100644 --- a/drivers/firmware/google/cbmem.c +++ b/drivers/firmware/google/cbmem.c @@ -12,6 +12,7 @@ #include <linux/io.h> #include <linux/kernel.h> #include <linux/kobject.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/slab.h> diff --git a/drivers/firmware/google/coreboot_table.c b/drivers/firmware/google/coreboot_table.c index 26d93781e64a..a031d6fe6bc5 100644 --- a/drivers/firmware/google/coreboot_table.c +++ b/drivers/firmware/google/coreboot_table.c @@ -14,6 +14,7 @@ #include <linux/init.h> #include <linux/io.h> #include <linux/kernel.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> diff --git a/drivers/firmware/google/coreboot_table.h b/drivers/firmware/google/coreboot_table.h index bb6f0f7299b4..17e9e5c3f6e1 100644 --- a/drivers/firmware/google/coreboot_table.h +++ b/drivers/firmware/google/coreboot_table.h @@ -13,7 +13,8 @@ #define __COREBOOT_TABLE_H #include <linux/device.h> -#include <linux/mod_devicetable.h> + +struct coreboot_device_id; /* Coreboot table header structure */ struct coreboot_table_header { diff --git a/drivers/firmware/google/framebuffer-coreboot.c b/drivers/firmware/google/framebuffer-coreboot.c index 07e9c7be94fa..81aa522edb1e 100644 --- a/drivers/firmware/google/framebuffer-coreboot.c +++ b/drivers/firmware/google/framebuffer-coreboot.c @@ -12,6 +12,7 @@ #include <linux/device.h> #include <linux/kernel.h> #include <linux/mm.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/platform_data/simplefb.h> diff --git a/drivers/firmware/google/memconsole-coreboot.c b/drivers/firmware/google/memconsole-coreboot.c index c5f08617aa8d..4aa9b1cad3c3 100644 --- a/drivers/firmware/google/memconsole-coreboot.c +++ b/drivers/firmware/google/memconsole-coreboot.c @@ -10,6 +10,7 @@ #include <linux/device.h> #include <linux/io.h> #include <linux/kernel.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include "memconsole.h" diff --git a/drivers/firmware/google/vpd.c b/drivers/firmware/google/vpd.c index 339a3f74b247..8d7f123f96f4 100644 --- a/drivers/firmware/google/vpd.c +++ b/drivers/firmware/google/vpd.c @@ -13,6 +13,7 @@ #include <linux/kernel.h> #include <linux/kobject.h> #include <linux/list.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/of_address.h> #include <linux/platform_device.h> |
