projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdab478
)
phy: freescale: imx8m-pcie: Use devm_platform_ioremap_resource()
author
Yang Li
<yang.lee@linux.alibaba.com>
Fri, 28 Apr 2023 05:27:58 +0000
(13:27 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Tue, 16 May 2023 14:21:24 +0000
(19:51 +0530)
Convert platform_get_resource(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource(), as this is exactly what this
function does.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20230428052758.38636-1-yang.lee@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-imx8m-pcie.c
patch
|
blob
|
history
diff --git
a/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
b/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
index afc63552ecaf7994738f9cfad53ef852fde9aa3b..d4c92498ad1e30485dc6bc682836abdd3794565b 100644
(file)
--- a/
drivers/phy/freescale/phy-fsl-imx8m-pcie.c
+++ b/
drivers/phy/freescale/phy-fsl-imx8m-pcie.c
@@
-206,7
+206,6
@@
static int imx8_pcie_phy_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct device_node *np = dev->of_node;
struct imx8_pcie_phy *imx8_phy;
- struct resource *res;
imx8_phy = devm_kzalloc(dev, sizeof(*imx8_phy), GFP_KERNEL);
if (!imx8_phy)
@@
-259,8
+258,7
@@
static int imx8_pcie_phy_probe(struct platform_device *pdev)
"Failed to get PCIE PHY PERST control\n");
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- imx8_phy->base = devm_ioremap_resource(dev, res);
+ imx8_phy->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(imx8_phy->base))
return PTR_ERR(imx8_phy->base);