Use function to access interface_port_count. This allows moving
functions requiring the info to different files.

Signed-off-by: Aaro Koskinen <aaro.koski...@iki.fi>
---
 arch/mips/cavium-octeon/executive/cvmx-helper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper.c 
b/arch/mips/cavium-octeon/executive/cvmx-helper.c
index 7e5cf7a..301a9ce 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-helper.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper.c
@@ -557,7 +557,7 @@ int cvmx_helper_interface_probe(int interface)
 static int __cvmx_helper_interface_setup_ipd(int interface)
 {
        int ipd_port = cvmx_helper_get_ipd_port(interface, 0);
-       int num_ports = interface_port_count[interface];
+       int num_ports = cvmx_helper_ports_on_interface(interface);
 
        while (num_ports--) {
                __cvmx_helper_port_setup_ipd(ipd_port);
@@ -620,7 +620,7 @@ static int __cvmx_helper_interface_setup_pko(int interface)
         * priorities are set.
         */
        int ipd_port = cvmx_helper_get_ipd_port(interface, 0);
-       int num_ports = interface_port_count[interface];
+       int num_ports = cvmx_helper_ports_on_interface(interface);
        while (num_ports--) {
                /*
                 * Give the user a chance to override the per queue
-- 
2.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to