File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ static void virtio_mmio_finalize_init(const struct device *dev)
260
260
virtio_mmio_write_status_bit (dev , DEVICE_STATUS_DRIVER_OK );
261
261
}
262
262
263
- static const struct virtio_driver_api virtio_mmio_driver_api = {
263
+ static DEVICE_API ( virtio , virtio_mmio_driver_api ) = {
264
264
.get_virtqueue = virtio_mmio_get_virtqueue ,
265
265
.notify_virtqueue = virtio_mmio_notify_queue ,
266
266
.get_device_specific_config = virtio_mmio_get_device_specific_config ,
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ int virtio_pci_commit_feature_bits(const struct device *dev)
568
568
return 0 ;
569
569
}
570
570
571
- static const struct virtio_driver_api virtio_pci_driver_api = {
571
+ static DEVICE_API ( virtio , virtio_pci_driver_api ) = {
572
572
.get_virtqueue = virtio_pci_get_virtqueue ,
573
573
.notify_virtqueue = virtio_pci_notify_queue ,
574
574
.get_device_specific_config = virtio_pci_get_device_specific_config ,
You can’t perform that action at this time.
0 commit comments