diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-11-06 07:08:38 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 08:17:46 +0100 |
commit | 0b7c4c88b83f415d4c75ba4774e0bb7ed266c7c0 (patch) | |
tree | be739d7a46ca182ec975f82dd7ac9dde6ea1be71 /drivers/phy/freescale/phy-fsl-imx8mq-usb.c | |
parent | phy: cadence: convert to devm_platform_ioremap_resource (diff) | |
download | linux-0b7c4c88b83f415d4c75ba4774e0bb7ed266c7c0.tar.xz linux-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 '')
-rw-r--r-- | drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c index 47a0c09bc9fa..a29b4a6f7c24 100644 --- a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c +++ b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c @@ -152,7 +152,6 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev) struct phy_provider *phy_provider; struct device *dev = &pdev->dev; struct imx8mq_usb_phy *imx_phy; - struct resource *res; const struct phy_ops *phy_ops; imx_phy = devm_kzalloc(dev, sizeof(*imx_phy), GFP_KERNEL); @@ -165,8 +164,7 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev) return PTR_ERR(imx_phy->clk); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - imx_phy->base = devm_ioremap_resource(dev, res); + imx_phy->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(imx_phy->base)) return PTR_ERR(imx_phy->base); |