It looks like the for loop should be the following based on the header file:

    for (i = 0; i < NUM_PRU_HOSTS &&
	     prussintc_init_data->hosts_enabled[i] != -1; ++i)