[PATCH 2/2] phy: miphy365x: Avoid calling of_get_child_count() multiple times

2015-02-24 Thread Axel Lin
Currently, of_get_child_count() is called in each iteration of the for loop in miphy365x_xlate(). This patch stores the return value of of_get_child_count() in miphy_dev->nphys and call of_get_child_count() once in miphy365x_probe(). Signed-off-by: Axel Lin --- drivers/phy/phy-miphy365x.c | 11

[PATCH 2/2] phy: miphy365x: Avoid calling of_get_child_count() multiple times

2015-02-24 Thread Axel Lin
Currently, of_get_child_count() is called in each iteration of the for loop in miphy365x_xlate(). This patch stores the return value of of_get_child_count() in miphy_dev-nphys and call of_get_child_count() once in miphy365x_probe(). Signed-off-by: Axel Lin axel@ingics.com ---