From b775c0d30ea565ee8ad17c31c55baf2d06e75946 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Thu, 28 Nov 2024 13:11:54 +0100 Subject: [PATCH] drivers: interrupt_controller: Place API into iterable section Commit e63c6cd5349aafb03e2cc47f874e5e3380a7140b introduced device API macros to be used by driver implementations. The DEVICE_API macro ensures the passed API instance is placed in the corresponding iterable section to allow for runtime checks. Add wrapper DEVICE_API macro to all its_driver_api instances. Signed-off-by: Pieter De Gendt --- drivers/interrupt_controller/intc_gicv3_its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interrupt_controller/intc_gicv3_its.c b/drivers/interrupt_controller/intc_gicv3_its.c index c8e754e1752..6316e686c75 100644 --- a/drivers/interrupt_controller/intc_gicv3_its.c +++ b/drivers/interrupt_controller/intc_gicv3_its.c @@ -655,7 +655,7 @@ static int gicv3_its_init(const struct device *dev) return 0; } -struct its_driver_api gicv3_its_api = { +DEVICE_API(its, gicv3_its_api) = { .alloc_intid = gicv3_its_alloc_intid, .setup_deviceid = gicv3_its_init_device_id, .map_intid = gicv3_its_map_intid,