Loading drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +6 −12 Original line number Diff line number Diff line Loading @@ -622,12 +622,12 @@ static irqreturn_t ETHQOS_PHY_ISR(int irq, void *dev_data) struct qcom_ethqos *ethqos = (struct qcom_ethqos *)dev_data; queue_work(system_wq, ðqos->emac_phy_work); return IRQ_HANDLED; } static int ethqos_phy_intr_enable(struct qcom_ethqos *ethqos) { int ret = 0; struct net_device *dev = platform_get_drvdata(ethqos->pdev); INIT_WORK(ðqos->emac_phy_work, ethqos_defer_phy_isr_work); ret = request_irq(ethqos->phy_intr, ETHQOS_PHY_ISR, Loading Loading @@ -662,9 +662,6 @@ static int emac_emb_smmu_cb_probe(struct platform_device *pdev) int result = 0; u32 iova_ap_mapping[2]; struct device *dev = &pdev->dev; int atomic_ctx = 1; int fast = 1; int bypass = 1; ETHQOSDBG("EMAC EMB SMMU CB probe: smmu pdev=%p\n", pdev); Loading Loading @@ -702,11 +699,10 @@ static int emac_emb_smmu_cb_probe(struct platform_device *pdev) static int qcom_ethqos_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct plat_stmmacenet_data *plat_dat; struct plat_stmmacenet_data *plat_dat = NULL; struct stmmac_resources stmmac_res; const struct ethqos_emac_driver_data *data; struct qcom_ethqos *ethqos; struct resource *res; struct qcom_ethqos *ethqos = NULL; struct resource *res = NULL; int ret; if (of_device_is_compatible(pdev->dev.of_node, Loading Loading @@ -741,16 +737,14 @@ static int qcom_ethqos_probe(struct platform_device *pdev) goto err_mem; } data = of_device_get_match_data(&pdev->dev); ethqos->por = data->por; ethqos->num_por = data->num_por; ethqos->rgmii_clk = devm_clk_get(&pdev->dev, "rgmii"); if (IS_ERR(ethqos->rgmii_clk)) { ret = PTR_ERR(ethqos->rgmii_clk); goto err_mem; } ethqos->por = of_device_get_match_data(&pdev->dev); ret = clk_prepare_enable(ethqos->rgmii_clk); if (ret) goto err_mem; Loading drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 −1 Original line number Diff line number Diff line Loading @@ -285,9 +285,9 @@ static int stmmac_mtl_setup(struct platform_device *pdev, dev_err(&pdev->dev, "Not all TX queues were configured\n"); goto out; } #endif out: #endif of_node_put(rx_node); of_node_put(tx_node); of_node_put(q_node); Loading Loading
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +6 −12 Original line number Diff line number Diff line Loading @@ -622,12 +622,12 @@ static irqreturn_t ETHQOS_PHY_ISR(int irq, void *dev_data) struct qcom_ethqos *ethqos = (struct qcom_ethqos *)dev_data; queue_work(system_wq, ðqos->emac_phy_work); return IRQ_HANDLED; } static int ethqos_phy_intr_enable(struct qcom_ethqos *ethqos) { int ret = 0; struct net_device *dev = platform_get_drvdata(ethqos->pdev); INIT_WORK(ðqos->emac_phy_work, ethqos_defer_phy_isr_work); ret = request_irq(ethqos->phy_intr, ETHQOS_PHY_ISR, Loading Loading @@ -662,9 +662,6 @@ static int emac_emb_smmu_cb_probe(struct platform_device *pdev) int result = 0; u32 iova_ap_mapping[2]; struct device *dev = &pdev->dev; int atomic_ctx = 1; int fast = 1; int bypass = 1; ETHQOSDBG("EMAC EMB SMMU CB probe: smmu pdev=%p\n", pdev); Loading Loading @@ -702,11 +699,10 @@ static int emac_emb_smmu_cb_probe(struct platform_device *pdev) static int qcom_ethqos_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct plat_stmmacenet_data *plat_dat; struct plat_stmmacenet_data *plat_dat = NULL; struct stmmac_resources stmmac_res; const struct ethqos_emac_driver_data *data; struct qcom_ethqos *ethqos; struct resource *res; struct qcom_ethqos *ethqos = NULL; struct resource *res = NULL; int ret; if (of_device_is_compatible(pdev->dev.of_node, Loading Loading @@ -741,16 +737,14 @@ static int qcom_ethqos_probe(struct platform_device *pdev) goto err_mem; } data = of_device_get_match_data(&pdev->dev); ethqos->por = data->por; ethqos->num_por = data->num_por; ethqos->rgmii_clk = devm_clk_get(&pdev->dev, "rgmii"); if (IS_ERR(ethqos->rgmii_clk)) { ret = PTR_ERR(ethqos->rgmii_clk); goto err_mem; } ethqos->por = of_device_get_match_data(&pdev->dev); ret = clk_prepare_enable(ethqos->rgmii_clk); if (ret) goto err_mem; Loading
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 −1 Original line number Diff line number Diff line Loading @@ -285,9 +285,9 @@ static int stmmac_mtl_setup(struct platform_device *pdev, dev_err(&pdev->dev, "Not all TX queues were configured\n"); goto out; } #endif out: #endif of_node_put(rx_node); of_node_put(tx_node); of_node_put(q_node); Loading