Skip to content

Commit 856ed91

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: virtualization: Place API into iterable section
Add wrapper DEVICE_API macro to all ivshmem_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 0668151 commit 856ed91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/virtualization/virt_ivshmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static int ivshmem_api_enable_interrupts(const struct device *dev,
520520

521521
#endif /* CONFIG_IVSHMEM_V2 */
522522

523-
static const struct ivshmem_driver_api ivshmem_api = {
523+
static DEVICE_API(ivshmem, ivshmem_api) = {
524524
.get_mem = ivshmem_api_get_mem,
525525
.get_id = ivshmem_api_get_id,
526526
.get_vectors = ivshmem_api_get_vectors,

0 commit comments

Comments
 (0)