diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-11-06 07:08:47 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 08:17:47 +0100 |
commit | 2f0c9fac3be6c834427f9d2af2107ebd6602d4b1 (patch) | |
tree | 4adb0a384ffa16b632be3cc3a207f153e24fce73 /drivers/phy/samsung/phy-exynos5250-sata.c | |
parent | phy: rockchip: convert to devm_platform_ioremap_resource (diff) | |
download | linux-2f0c9fac3be6c834427f9d2af2107ebd6602d4b1.tar.xz linux-2f0c9fac3be6c834427f9d2af2107ebd6602d4b1.zip |
phy: samsung: 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: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/1604642930-29019-14-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/samsung/phy-exynos5250-sata.c')
-rw-r--r-- | drivers/phy/samsung/phy-exynos5250-sata.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/phy/samsung/phy-exynos5250-sata.c b/drivers/phy/samsung/phy-exynos5250-sata.c index 4dd7324d91b2..9ec234243f7c 100644 --- a/drivers/phy/samsung/phy-exynos5250-sata.c +++ b/drivers/phy/samsung/phy-exynos5250-sata.c @@ -162,7 +162,6 @@ static int exynos_sata_phy_probe(struct platform_device *pdev) { struct exynos_sata_phy *sata_phy; struct device *dev = &pdev->dev; - struct resource *res; struct phy_provider *phy_provider; struct device_node *node; int ret = 0; @@ -171,9 +170,7 @@ static int exynos_sata_phy_probe(struct platform_device *pdev) if (!sata_phy) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - sata_phy->regs = devm_ioremap_resource(dev, res); + sata_phy->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sata_phy->regs)) return PTR_ERR(sata_phy->regs); |