diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-11-06 09:08:36 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 10:17:46 +0300 |
commit | f669bc8b9f7beb6b1936882a2c3670dc1bd985ba (patch) | |
tree | 8d710a482011711ad6e67b0368793560d2fd58a5 /drivers/phy/broadcom/phy-bcm-cygnus-pcie.c | |
parent | 202de02556bb49ba35f5c7675934b9b14bbb2a56 (diff) | |
download | linux-f669bc8b9f7beb6b1936882a2c3670dc1bd985ba.tar.xz |
phy: broadcom: 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>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: Al Cooper <alcooperx@gmail.com>
Link: https://lore.kernel.org/r/1604642930-29019-3-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/broadcom/phy-bcm-cygnus-pcie.c')
-rw-r--r-- | drivers/phy/broadcom/phy-bcm-cygnus-pcie.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c b/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c index b074682d9dd8..548e46776100 100644 --- a/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c +++ b/drivers/phy/broadcom/phy-bcm-cygnus-pcie.c @@ -126,7 +126,6 @@ static int cygnus_pcie_phy_probe(struct platform_device *pdev) struct device_node *node = dev->of_node, *child; struct cygnus_pcie_phy_core *core; struct phy_provider *provider; - struct resource *res; unsigned cnt = 0; int ret; @@ -141,8 +140,7 @@ static int cygnus_pcie_phy_probe(struct platform_device *pdev) core->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - core->base = devm_ioremap_resource(dev, res); + core->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(core->base)) return PTR_ERR(core->base); |