diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-11-06 09:08:40 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 10:17:47 +0300 |
commit | ee55b501bd8ceb12c30ff0c0240498a301e126db (patch) | |
tree | 4566c7c7f902b3d3ebf990dc8ac52b7236423e07 /drivers/phy/marvell/phy-pxa-28nm-usb2.c | |
parent | 6c9111bc9eef0ff0302a0963ff802d31e21bfe05 (diff) | |
download | linux-ee55b501bd8ceb12c30ff0c0240498a301e126db.tar.xz |
phy: marvell: 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: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/1604642930-29019-7-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/marvell/phy-pxa-28nm-usb2.c')
-rw-r--r-- | drivers/phy/marvell/phy-pxa-28nm-usb2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/marvell/phy-pxa-28nm-usb2.c b/drivers/phy/marvell/phy-pxa-28nm-usb2.c index a175ae915f02..0b390b9d2ae1 100644 --- a/drivers/phy/marvell/phy-pxa-28nm-usb2.c +++ b/drivers/phy/marvell/phy-pxa-28nm-usb2.c @@ -294,7 +294,6 @@ static int mv_usb2_phy_probe(struct platform_device *pdev) { struct phy_provider *phy_provider; struct mv_usb2_phy *mv_phy; - struct resource *r; mv_phy = devm_kzalloc(&pdev->dev, sizeof(*mv_phy), GFP_KERNEL); if (!mv_phy) @@ -308,8 +307,7 @@ static int mv_usb2_phy_probe(struct platform_device *pdev) return PTR_ERR(mv_phy->clk); } - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mv_phy->base = devm_ioremap_resource(&pdev->dev, r); + mv_phy->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mv_phy->base)) return PTR_ERR(mv_phy->base); |