浏览代码

phy: Use general phy code for smsc lan8720a

Signed-off-by: David Dueck <davidcdueck@googlemail.com>
David Dueck 11 年之前
父节点
当前提交
f27f3b5266
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/net/phy/smsc.c

+ 2 - 1
drivers/net/phy/smsc.c

@@ -12,6 +12,7 @@
  */
  */
 #include <miiphy.h>
 #include <miiphy.h>
 
 
+/* This code does not check the partner abilities. */
 static int smsc_parse_status(struct phy_device *phydev)
 static int smsc_parse_status(struct phy_device *phydev)
 {
 {
 	int mii_reg;
 	int mii_reg;
@@ -64,7 +65,7 @@ static struct phy_driver lan8710_driver = {
 	.mask = 0xffff0,
 	.mask = 0xffff0,
 	.features = PHY_BASIC_FEATURES,
 	.features = PHY_BASIC_FEATURES,
 	.config = &genphy_config_aneg,
 	.config = &genphy_config_aneg,
-	.startup = &smsc_startup,
+	.startup = &genphy_startup,
 	.shutdown = &genphy_shutdown,
 	.shutdown = &genphy_shutdown,
 };
 };