diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-11-06 09:08:43 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 10:17:47 +0300 |
commit | 8a7772cdd91de4eea6dcd9df9b6fce7f4c012208 (patch) | |
tree | f1c1da20077a49c078ba66247ba51f4bafab06fa /drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | |
parent | 7458d650e256b2b418efa4c974585846da4358a6 (diff) | |
download | linux-8a7772cdd91de4eea6dcd9df9b6fce7f4c012208.tar.xz |
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-ipq4019-usb.c')
-rw-r--r-- | drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c b/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c index fc7f9df80a7b..d3e7d5e1d1b6 100644 --- a/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c @@ -95,7 +95,6 @@ MODULE_DEVICE_TABLE(of, ipq4019_usb_phy_of_match); static int ipq4019_usb_phy_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct phy_provider *phy_provider; struct ipq4019_usb_phy *phy; @@ -104,8 +103,7 @@ static int ipq4019_usb_phy_probe(struct platform_device *pdev) return -ENOMEM; phy->dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - phy->base = devm_ioremap_resource(&pdev->dev, res); + phy->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(phy->base)) { dev_err(dev, "failed to remap register memory\n"); return PTR_ERR(phy->base); |