ftgmac100.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | ftgmac100.c (84eff6d194df442bee62c129f2f47efb0dbd0468) |
---|---|
1/* 2 * Faraday FTGMAC100 Gigabit Ethernet 3 * 4 * (C) Copyright 2009-2011 Faraday Technology 5 * Po-Yu Chuang <ratbert@faraday-tech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 840 unchanged lines hidden (view full) --- 849 } 850 851 /* now we are supposed to have a proper phydev, to attach to... */ 852 if (!phydev) { 853 netdev_info(netdev, "%s: no PHY found\n", netdev->name); 854 return -ENODEV; 855 } 856 | 1/* 2 * Faraday FTGMAC100 Gigabit Ethernet 3 * 4 * (C) Copyright 2009-2011 Faraday Technology 5 * Po-Yu Chuang <ratbert@faraday-tech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 840 unchanged lines hidden (view full) --- 849 } 850 851 /* now we are supposed to have a proper phydev, to attach to... */ 852 if (!phydev) { 853 netdev_info(netdev, "%s: no PHY found\n", netdev->name); 854 return -ENODEV; 855 } 856 |
857 phydev = phy_connect(netdev, dev_name(&phydev->dev), | 857 phydev = phy_connect(netdev, phydev_name(phydev), |
858 &ftgmac100_adjust_link, PHY_INTERFACE_MODE_GMII); 859 860 if (IS_ERR(phydev)) { 861 netdev_err(netdev, "%s: Could not attach to PHY\n", netdev->name); 862 return PTR_ERR(phydev); 863 } 864 865 priv->phydev = phydev; --- 480 unchanged lines hidden --- | 858 &ftgmac100_adjust_link, PHY_INTERFACE_MODE_GMII); 859 860 if (IS_ERR(phydev)) { 861 netdev_err(netdev, "%s: Could not attach to PHY\n", netdev->name); 862 return PTR_ERR(phydev); 863 } 864 865 priv->phydev = phydev; --- 480 unchanged lines hidden --- |