“7fa3031500ec9b0a7460c8c23751799006ffee74”上不存在“kernel/module-internal.h”
提交 9cf4843e 编写于 作者: M Manivannan Sadhasivam 提交者: Lorenzo Pieralisi

PCI: qcom-ep: Make use of the cached dev pointer

In the qcom_pcie_ep_get_resources() function, dev pointer is already
cached in a local variable. So let's make use of it instead of getting
the dev pointer again from pdev struct.

Link: https://lore.kernel.org/r/20220914075350.7992-4-manivannan.sadhasivam@linaro.orgSigned-off-by: NManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: NLorenzo Pieralisi <lpieralisi@kernel.org>
上级 e2efd314
...@@ -483,7 +483,7 @@ static int qcom_pcie_ep_get_resources(struct platform_device *pdev, ...@@ -483,7 +483,7 @@ static int qcom_pcie_ep_get_resources(struct platform_device *pdev,
ret = qcom_pcie_ep_get_io_resources(pdev, pcie_ep); ret = qcom_pcie_ep_get_io_resources(pdev, pcie_ep);
if (ret) { if (ret) {
dev_err(&pdev->dev, "Failed to get io resources %d\n", ret); dev_err(dev, "Failed to get io resources %d\n", ret);
return ret; return ret;
} }
...@@ -505,7 +505,7 @@ static int qcom_pcie_ep_get_resources(struct platform_device *pdev, ...@@ -505,7 +505,7 @@ static int qcom_pcie_ep_get_resources(struct platform_device *pdev,
if (IS_ERR(pcie_ep->wake)) if (IS_ERR(pcie_ep->wake))
return PTR_ERR(pcie_ep->wake); return PTR_ERR(pcie_ep->wake);
pcie_ep->phy = devm_phy_optional_get(&pdev->dev, "pciephy"); pcie_ep->phy = devm_phy_optional_get(dev, "pciephy");
if (IS_ERR(pcie_ep->phy)) if (IS_ERR(pcie_ep->phy))
ret = PTR_ERR(pcie_ep->phy); ret = PTR_ERR(pcie_ep->phy);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册