]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: mvebu: increment nports only for registered ports
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 13 Aug 2013 12:25:21 +0000 (14:25 +0200)
committerJason Cooper <jason@lakedaemon.net>
Tue, 13 Aug 2013 18:20:59 +0000 (18:20 +0000)
commit33d563eaa5d097dfb4f1ec4bcd49b61473abc097
treeaf55d7caa457995722ca07fa1055d0776c8263b2
parent826727641b2a137d95efab0f579160ae5864f780
PCI: mvebu: increment nports only for registered ports

The number of ports is probed by counting the number of available child nodes.
Later on, the registration of a port can fail and cause a mismatch between
the ->nports counter and registered ports. This patch modifies the counting
strategy, to make ->nports represent the number of registered ports instead
of the number of available childs.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/pci/host/pci-mvebu.c