[PATCH v2 2/5] PCI: mvebu: increment nports only for registered ports

2013-08-13 Thread Sebastian Hesselbarth
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

[PATCH v2 2/5] PCI: mvebu: increment nports only for registered ports

2013-08-13 Thread Sebastian Hesselbarth
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