virtio_pmem: convert to LE accessors
Virtio pmem is modern-only. Use LE accessors for config space. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
b13a54070c
commit
02e715b7fa
|
@ -58,9 +58,9 @@ static int virtio_pmem_probe(struct virtio_device *vdev)
|
||||||
goto out_err;
|
goto out_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtio_cread(vpmem->vdev, struct virtio_pmem_config,
|
virtio_cread_le(vpmem->vdev, struct virtio_pmem_config,
|
||||||
start, &vpmem->start);
|
start, &vpmem->start);
|
||||||
virtio_cread(vpmem->vdev, struct virtio_pmem_config,
|
virtio_cread_le(vpmem->vdev, struct virtio_pmem_config,
|
||||||
size, &vpmem->size);
|
size, &vpmem->size);
|
||||||
|
|
||||||
res.start = vpmem->start;
|
res.start = vpmem->start;
|
||||||
|
|
Loading…
Reference in New Issue