From: Sebastian Hesselbarth Date: Tue, 13 Aug 2013 12:25:21 +0000 (+0200) Subject: PCI: mvebu: increment nports only for registered ports X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~49^2~3^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf09b6ae588f7567bcf31d9eff313d4d9fdc664e;p=pandora-kernel.git 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 Signed-off-by: Jason Cooper --- Reading git-diff-tree failed