]> git.baikalelectronics.ru Git - uboot.git/commit
pci: Fix use of flags in dm_pci_map_bar()
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:06 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:45 +0000 (15:50 -0400)
commiteb703595386d42e9cdacc208ac130043c4c1d972
tree1e09b310a02eabea423e829f2b0286d576b00be1
parent898e5da7b320a256bb6537b4cb34a30f1461c308
pci: Fix use of flags in dm_pci_map_bar()

The flags parameter of dm_pci_map_bar() is used for PCI region flags
rather than memory mapping flags. Fix the type to match that of the
region flags and stop using the regions flags as memory mapping flags.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c
include/pci.h