From: Grant Likely Date: Sat, 25 Apr 2009 12:52:46 +0000 (+0000) Subject: phylib: rework to prepare for OF registration of PHYs X-Git-Tag: v2.6.31-rc1~330^2~563 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dea547fef1ba23f9d23f5e7f5218187a7dcf1b3;p=pandora-kernel.git phylib: rework to prepare for OF registration of PHYs This patch makes changes in preparation for supporting open firmware device tree descriptions of MDIO busses. Changes include: - Cleanup handling of phy_map[] entries; they are already NULLed when registering and so don't need to be re-cleared, and it is good practice to clear them out when unregistering. - Split phy_device registration out into a new function so that the OF helpers can do two stage registration (separate allocation and registration steps). Signed-off-by: Grant Likely Acked-by: Andy Fleming Signed-off-by: David S. Miller --- Reading git-diff-tree failed