* [PATCH] hwspinlock: stm32: convert to devm_platform_ioremap_resource
@ 2019-12-28 19:15 ` Yangtao Li
0 siblings, 0 replies; 3+ messages in thread
From: Yangtao Li @ 2019-12-28 19:15 UTC (permalink / raw)
To: ohad, bjorn.andersson, mcoquelin.stm32, alexandre.torgue,
linux-remoteproc, linux-stm32, linux-arm-kernel, linux-kernel
Cc: Yangtao Li
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
drivers/hwspinlock/stm32_hwspinlock.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c
index c8eacf4f9692..3ad0ce0da4d9 100644
--- a/drivers/hwspinlock/stm32_hwspinlock.c
+++ b/drivers/hwspinlock/stm32_hwspinlock.c
@@ -58,12 +58,10 @@ static int stm32_hwspinlock_probe(struct platform_device *pdev)
{
struct stm32_hwspinlock *hw;
void __iomem *io_base;
- struct resource *res;
size_t array_size;
int i, ret;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- io_base = devm_ioremap_resource(&pdev->dev, res);
+ io_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(io_base))
return PTR_ERR(io_base);
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] hwspinlock: stm32: convert to devm_platform_ioremap_resource
@ 2019-12-28 19:15 ` Yangtao Li
0 siblings, 0 replies; 3+ messages in thread
From: Yangtao Li @ 2019-12-28 19:15 UTC (permalink / raw)
To: ohad, bjorn.andersson, mcoquelin.stm32, alexandre.torgue,
linux-remoteproc, linux-stm32, linux-arm-kernel, linux-kernel
Cc: Yangtao Li
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
drivers/hwspinlock/stm32_hwspinlock.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c
index c8eacf4f9692..3ad0ce0da4d9 100644
--- a/drivers/hwspinlock/stm32_hwspinlock.c
+++ b/drivers/hwspinlock/stm32_hwspinlock.c
@@ -58,12 +58,10 @@ static int stm32_hwspinlock_probe(struct platform_device *pdev)
{
struct stm32_hwspinlock *hw;
void __iomem *io_base;
- struct resource *res;
size_t array_size;
int i, ret;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- io_base = devm_ioremap_resource(&pdev->dev, res);
+ io_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(io_base))
return PTR_ERR(io_base);
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hwspinlock: stm32: convert to devm_platform_ioremap_resource
2019-12-28 19:15 ` Yangtao Li
(?)
@ 2019-12-29 5:40 ` patchwork-bot+linux-remoteproc
-1 siblings, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-remoteproc @ 2019-12-29 5:40 UTC (permalink / raw)
To: Yangtao Li; +Cc: linux-remoteproc
Hello:
This patch was applied to andersson/remoteproc.git (refs/heads/for-next).
On Sat, 28 Dec 2019 19:15:41 +0000 you wrote:
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
> ---
> drivers/hwspinlock/stm32_hwspinlock.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Here is a summary with links:
- hwspinlock: stm32: convert to devm_platform_ioremap_resource
https://git.kernel.org/andersson/remoteproc/c/d4824486b676ef87071081bdb77a6de2a5a341c7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/pwbot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-29 5:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-28 19:15 [PATCH] hwspinlock: stm32: convert to devm_platform_ioremap_resource Yangtao Li
2019-12-28 19:15 ` Yangtao Li
2019-12-29 5:40 ` patchwork-bot+linux-remoteproc
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.