diff options
| author | Vincent Whitchurch <vincent.whitchurch@axis.com> | 2023-09-01 15:35:43 +0200 |
|---|---|---|
| committer | Richard Weinberger <richard@nod.at> | 2024-01-04 21:15:49 +0100 |
| commit | 32253f00ac8a8073bf6db4bfe9d6511cc93c4aef (patch) | |
| tree | 665f8b6529c4fc5fcbfd5d6afa0c0e335766074d | |
| parent | Linux 6.7-rc7 (diff) | |
| download | linux-32253f00ac8a8073bf6db4bfe9d6511cc93c4aef.tar.gz linux-32253f00ac8a8073bf6db4bfe9d6511cc93c4aef.zip | |
um: virt-pci: fix platform map offset
The offset is currently always zero so the backend can't distinguish
between accesses to different ioremapped areas.
Fixes: 522c532c4fe7 ("virt-pci: add platform bus support")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
| -rw-r--r-- | arch/um/drivers/virt-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c index ffe2ee8a0246..97a37c062997 100644 --- a/arch/um/drivers/virt-pci.c +++ b/arch/um/drivers/virt-pci.c @@ -971,7 +971,7 @@ static long um_pci_map_platform(unsigned long offset, size_t size, *ops = &um_pci_device_bar_ops; *priv = &um_pci_platform_device->resptr[0]; - return 0; + return offset; } static const struct logic_iomem_region_ops um_pci_platform_ops = { |
