|
@@ -334,9 +334,10 @@ static void __init octeon_fdt_pip_iface(int pip, int idx, u64 *pmac)
|
|
|
char name_buffer[20];
|
|
|
int iface;
|
|
|
int p;
|
|
|
- int count;
|
|
|
+ int count = 0;
|
|
|
|
|
|
- count = cvmx_helper_interface_enumerate(idx);
|
|
|
+ if (cvmx_helper_interface_enumerate(idx) == 0)
|
|
|
+ count = cvmx_helper_ports_on_interface(idx);
|
|
|
|
|
|
snprintf(name_buffer, sizeof(name_buffer), "interface@%d", idx);
|
|
|
iface = fdt_subnode_offset(initial_boot_params, pip, name_buffer);
|