mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
bcm63xx_enet: remove pointless mac_id check
Enabling the ephy clock for mac 1 is harmless, and the actual usage of the ephy is not restricted to mac 0, so we might as well remove the check. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1942e48225
commit
bbd62d24f9
1 changed files with 1 additions and 1 deletions
|
@ -1787,7 +1787,7 @@ static int bcm_enet_probe(struct platform_device *pdev)
|
|||
priv->tx_chan = pd->tx_chan;
|
||||
}
|
||||
|
||||
if (priv->mac_id == 0 && priv->has_phy && !priv->use_external_mii) {
|
||||
if (priv->has_phy && !priv->use_external_mii) {
|
||||
/* using internal PHY, enable clock */
|
||||
priv->phy_clk = devm_clk_get(&pdev->dev, "ephy");
|
||||
if (IS_ERR(priv->phy_clk)) {
|
||||
|
|
Loading…
Reference in a new issue