All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] memory: da8xx-ddrctl: simplify platform_get_resource()
@ 2022-04-19 14:28 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-19 14:28 UTC (permalink / raw)
  To: Markus Mayer, Broadcom Kernel Team, Krzysztof Kozlowski,
	Florian Fainelli, Santosh Shilimkar, Thierry Reding,
	Jonathan Hunter, linux-arm-kernel, linux-kernel, linux-tegra

Use devm_platform_get_and_ioremap_resource() instead of
platform_get_resource() and devm_ioremap_resource().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/memory/da8xx-ddrctl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c
index 872addd0ec60..b32005bf269c 100644
--- a/drivers/memory/da8xx-ddrctl.c
+++ b/drivers/memory/da8xx-ddrctl.c
@@ -115,8 +115,7 @@ static int da8xx_ddrctl_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	ddrctl = devm_ioremap_resource(dev, res);
+	ddrctl = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(ddrctl)) {
 		dev_err(dev, "unable to map memory controller registers\n");
 		return PTR_ERR(ddrctl);
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-26 16:53 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 14:28 [PATCH 1/7] memory: da8xx-ddrctl: simplify platform_get_resource() Krzysztof Kozlowski
2022-04-19 14:28 ` Krzysztof Kozlowski
2022-04-19 14:28 ` [PATCH 2/7] memory: emif: " Krzysztof Kozlowski
2022-04-19 14:28   ` Krzysztof Kozlowski
2022-04-19 14:28 ` [PATCH 3/7] memory: ti-emif: " Krzysztof Kozlowski
2022-04-19 14:28   ` Krzysztof Kozlowski
2022-04-19 14:28 ` [PATCH 4/7] memory: ti-emif-pm: " Krzysztof Kozlowski
2022-04-19 14:28   ` Krzysztof Kozlowski
2022-04-19 14:28 ` [PATCH 5/7] memory: tegra: mc: " Krzysztof Kozlowski
2022-04-19 14:28   ` Krzysztof Kozlowski
2022-04-19 14:28 ` [PATCH 6/7] memory: brcmstb_dpfe: simplify platform_get_resource_byname() Krzysztof Kozlowski
2022-04-19 14:28   ` Krzysztof Kozlowski
2022-04-26 16:52   ` Markus Mayer
2022-04-26 16:52     ` Markus Mayer
2022-04-19 14:28 ` [PATCH 7/7] memory: renesas-rpc-if: " Krzysztof Kozlowski
2022-04-19 14:28   ` Krzysztof Kozlowski
2022-04-26  7:49 ` [PATCH 1/7] memory: da8xx-ddrctl: simplify platform_get_resource() Krzysztof Kozlowski
2022-04-26  7:49   ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.