From: Axel Lin Date: Tue, 24 Feb 2015 11:52:47 +0000 (+0800) Subject: phy: miphy28lp: Avoid calling of_get_child_count() multiple times X-Git-Tag: omap-for-v4.1/fixes-rc1~286^2~5^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21647f73835efdd0cc71b899668a8848ad9bd8cf;p=pandora-kernel.git phy: miphy28lp: Avoid calling of_get_child_count() multiple times Currently, of_get_child_count() is called in each iteration of the for loop in miphy28lp_xlate(). This patch stores the return value of of_get_child_count() in miphy_dev->nphys and call of_get_child_count() once in miphy28lp_probe(). Signed-off-by: Axel Lin Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed