summaryrefslogtreecommitdiff
path: root/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2020-11-06 14:08:38 +0800
committerVinod Koul <vkoul@kernel.org>2020-11-16 12:47:46 +0530
commit0b7c4c88b83f415d4c75ba4774e0bb7ed266c7c0 (patch)
treebe739d7a46ca182ec975f82dd7ac9dde6ea1be71 /drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
parentfa62909400fa5abc53cc76cb4917bb92b8bf3a2d (diff)
downloadlwn-0b7c4c88b83f415d4c75ba4774e0bb7ed266c7c0.tar.gz
lwn-0b7c4c88b83f415d4c75ba4774e0bb7ed266c7c0.zip
phy: freescale: convert to devm_platform_ioremap_resource
Use devm_platform_ioremap_resource to simplify code Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by: Peter Chen <peter.chen@nxp.com> Link: https://lore.kernel.org/r/1604642930-29019-5-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c')
-rw-r--r--drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c b/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
index 9f2c1da14f5a..a95572b397ca 100644
--- a/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
+++ b/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
@@ -434,7 +434,6 @@ static int mixel_dphy_probe(struct platform_device *pdev)
struct device_node *np = dev->of_node;
struct phy_provider *phy_provider;
struct mixel_dphy_priv *priv;
- struct resource *res;
struct phy *phy;
void __iomem *base;
@@ -449,8 +448,7 @@ static int mixel_dphy_probe(struct platform_device *pdev)
if (!priv->devdata)
return -EINVAL;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);