|
@@ -1785,9 +1785,9 @@ static int xgene_enet_get_resources(struct xgene_enet_pdata *pdata)
|
|
|
|
|
|
xgene_enet_gpiod_get(pdata);
|
|
xgene_enet_gpiod_get(pdata);
|
|
|
|
|
|
- if (pdata->phy_mode != PHY_INTERFACE_MODE_SGMII) {
|
|
|
|
- pdata->clk = devm_clk_get(&pdev->dev, NULL);
|
|
|
|
- if (IS_ERR(pdata->clk)) {
|
|
|
|
|
|
+ pdata->clk = devm_clk_get(&pdev->dev, NULL);
|
|
|
|
+ if (IS_ERR(pdata->clk)) {
|
|
|
|
+ if (pdata->phy_mode != PHY_INTERFACE_MODE_SGMII) {
|
|
/* Abort if the clock is defined but couldn't be
|
|
/* Abort if the clock is defined but couldn't be
|
|
* retrived. Always abort if the clock is missing on
|
|
* retrived. Always abort if the clock is missing on
|
|
* DT system as the driver can't cope with this case.
|
|
* DT system as the driver can't cope with this case.
|