phylib: factor out get_phy_id from within get_phy_device
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 15 Apr 2008 16:49:21 +0000 (12:49 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:31:33 +0000 (15:31 -0400)
commitcac1f3c8a80f3fc0b4489d1d3ba29214677ffab2
treea4bd716695f61d11f588f5145c879cefa42d6900
parentb1394f961a90a7195ea177ee56d54fe5c37181ca
phylib: factor out get_phy_id from within get_phy_device

We were already doing what amounts to a get_phy_id from within
get_phy_device, and rather than duplicate this for the TBIPA
probing, we might as well just factor it out and make it available
instead.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/phy/phy_device.c
include/linux/phy.h