drivers: virtualization: Place API into iterable section
Add wrapper DEVICE_API macro to all ivshmem_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
0668151a2f
commit
856ed9188c
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ static int ivshmem_api_enable_interrupts(const struct device *dev,
|
||||||
|
|
||||||
#endif /* CONFIG_IVSHMEM_V2 */
|
#endif /* CONFIG_IVSHMEM_V2 */
|
||||||
|
|
||||||
static const struct ivshmem_driver_api ivshmem_api = {
|
static DEVICE_API(ivshmem, ivshmem_api) = {
|
||||||
.get_mem = ivshmem_api_get_mem,
|
.get_mem = ivshmem_api_get_mem,
|
||||||
.get_id = ivshmem_api_get_id,
|
.get_id = ivshmem_api_get_id,
|
||||||
.get_vectors = ivshmem_api_get_vectors,
|
.get_vectors = ivshmem_api_get_vectors,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue