diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-11-06 07:08:35 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 08:17:46 +0100 |
commit | 202de02556bb49ba35f5c7675934b9b14bbb2a56 (patch) | |
tree | 63b40503b439b57b5458682093d040a343bccbcd /drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c | |
parent | phy: allwinner: convert to devm_platform_ioremap_resource(_byname) (diff) | |
download | linux-202de02556bb49ba35f5c7675934b9b14bbb2a56.tar.xz linux-202de02556bb49ba35f5c7675934b9b14bbb2a56.zip |
phy: amlogic: 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: Remi Pommarel <repk@triplefau.lt>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/1604642930-29019-2-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c')
-rw-r--r-- | drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c b/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c index 08e322789e59..ebe3d0ddd304 100644 --- a/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c +++ b/drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c @@ -386,7 +386,6 @@ static int phy_g12a_usb3_pcie_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct phy_g12a_usb3_pcie_priv *priv; - struct resource *res; struct phy_provider *phy_provider; void __iomem *base; int ret; @@ -395,8 +394,7 @@ static int phy_g12a_usb3_pcie_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - 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); |