diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-12-11 10:42:44 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-12-11 10:46:50 +0100 |
commit | 58f9167a04e5c780f07a0488a1cd9c71d28ffc08 (patch) | |
tree | c6c38614e051dc540cddd20976ef02f45107ae6f /include | |
parent | 5f0a71708e04ae7c5c0d4ef859d680bcce44dd86 (diff) | |
download | barebox-58f9167a04e5c780f07a0488a1cd9c71d28ffc08.tar.gz barebox-58f9167a04e5c780f07a0488a1cd9c71d28ffc08.tar.xz |
net: phy: bail out early in phy_device_connect
If an ethernet device already has a phy in phy_device_connect all we
have to do is to start autonegotiation. Do this early and bail out
so that for the rest of the code it's clear that we have to search for
a phy device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 94f631b188..a1c629e9dc 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -161,7 +161,6 @@ struct phy_device { int autoneg; int force; - /* private data pointer */ /* For use by PHYs to maintain extra state */ void *priv; |