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
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
---
2 matches
Mail list logo