Skip to content

Commit

Permalink
drivers: interrupt_controller: Place API into iterable section
Browse files Browse the repository at this point in the history
Add wrapper DEVICE_API macro to all vtd_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
  • Loading branch information
pdgendt authored and fabiobaltieri committed Dec 2, 2024
1 parent ec205e7 commit 1a0c852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/interrupt_controller/intc_intel_vtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ static int vtd_ictl_init(const struct device *dev)
return ret;
}

static const struct vtd_driver_api vtd_api = {
static DEVICE_API(vtd, vtd_api) = {
.allocate_entries = vtd_ictl_allocate_entries,
.remap_msi = vtd_ictl_remap_msi,
.remap = vtd_ictl_remap,
Expand Down

0 comments on commit 1a0c852

Please sign in to comment.