mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
um: virt-pci: fix platform map offset
[ Upstream commit32253f00ac
] The offset is currently always zero so the backend can't distinguish between accesses to different ioremapped areas. Fixes:522c532c4f
("virt-pci: add platform bus support") Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
66c8b147fe
commit
e111d2319a
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue