aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/qualcomm/phy-qcom-pcie2.c
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2020-11-06 14:08:43 +0800
committerVinod Koul <vkoul@kernel.org>2020-11-16 12:47:47 +0530
commit8a7772cdd91de4eea6dcd9df9b6fce7f4c012208 (patch)
treef1c1da20077a49c078ba66247ba51f4bafab06fa /drivers/phy/qualcomm/phy-qcom-pcie2.c
parentphy: phy-mtk-ufs: convert to devm_platform_ioremap_resource (diff)
downloadlinux-dev-8a7772cdd91de4eea6dcd9df9b6fce7f4c012208.tar.xz
linux-dev-8a7772cdd91de4eea6dcd9df9b6fce7f4c012208.zip
phy: qualcomm: convert to devm_platform_ioremap_resource(_byname)
Use devm_platform_ioremap_resource(_byname) to simplify code Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1604642930-29019-10-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/qualcomm/phy-qcom-pcie2.c')
-rw-r--r--drivers/phy/qualcomm/phy-qcom-pcie2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-pcie2.c b/drivers/phy/qualcomm/phy-qcom-pcie2.c
index 9dba3594e6d9..5407e59bb185 100644
--- a/drivers/phy/qualcomm/phy-qcom-pcie2.c
+++ b/drivers/phy/qualcomm/phy-qcom-pcie2.c
@@ -250,7 +250,6 @@ static int qcom_pcie2_phy_probe(struct platform_device *pdev)
{
struct phy_provider *phy_provider;
struct qcom_phy *qphy;
- struct resource *res;
struct device *dev = &pdev->dev;
struct phy *phy;
int ret;
@@ -260,9 +259,7 @@ static int qcom_pcie2_phy_probe(struct platform_device *pdev)
return -ENOMEM;
qphy->dev = dev;
-
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- qphy->base = devm_ioremap_resource(dev, res);
+ qphy->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(qphy->base))
return PTR_ERR(qphy->base);