Skip to content

Commit 1a0c852

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: interrupt_controller: Place API into iterable section
Add wrapper DEVICE_API macro to all vtd_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent ec205e7 commit 1a0c852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/interrupt_controller/intc_intel_vtd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static int vtd_ictl_init(const struct device *dev)
523523
return ret;
524524
}
525525

526-
static const struct vtd_driver_api vtd_api = {
526+
static DEVICE_API(vtd, vtd_api) = {
527527
.allocate_entries = vtd_ictl_allocate_entries,
528528
.remap_msi = vtd_ictl_remap_msi,
529529
.remap = vtd_ictl_remap,

0 commit comments

Comments
 (0)