of_graph_get_port_count
EXPORT_SYMBOL(of_graph_get_port_count);
unsigned int of_graph_get_port_count(struct device_node *np);
return of_graph_get_port_count(ports) - 1;