]> git.baikalelectronics.ru Git - uboot.git/commit
pci: pci_mvebu: use dev_seq instead of static variable
authorMarek Behún <marek.behun@nic.cz>
Mon, 8 Feb 2021 22:01:37 +0000 (23:01 +0100)
committerStefan Roese <sr@denx.de>
Fri, 26 Feb 2021 09:22:29 +0000 (10:22 +0100)
commit2324bab18cfa34656ed3b0dfe5a61265c2cede99
tree816bf8041e1324dfc082dd230f0c3d79c91f63f2
parent947c1aa11202e6e29060d4987d2c1866f016ee3a
pci: pci_mvebu: use dev_seq instead of static variable

PCI uclass maps PCI bus numbers to the seq member of struct udevice.
Use dev_seq(dev) as the bus number in mvebu_pcie_probe instead of an
incrementing a static variable.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Stefan Roese <sr@denx.de>
Cc: Phil Sutter <phil@nwl.cc>
Cc: Mario Six <mario.six@gdsys.cc>
Cc: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci_mvebu.c