All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yangtao Li <frank.li@vivo.com>
To: Lee Jones <lee@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Alim Akhtar <alim.akhtar@samsung.com>
Cc: Yangtao Li <frank.li@vivo.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 4/7] mfd: exynos-lpass: Convert to devm_platform_ioremap_resource()
Date: Thu,  6 Jul 2023 19:39:36 +0800	[thread overview]
Message-ID: <20230706113939.1178-4-frank.li@vivo.com> (raw)
In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com>

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/mfd/exynos-lpass.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c
index 166cd21088cd..1506d8d352b1 100644
--- a/drivers/mfd/exynos-lpass.c
+++ b/drivers/mfd/exynos-lpass.c
@@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	struct exynos_lpass *lpass;
 	void __iomem *base_top;
-	struct resource *res;
 
 	lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL);
 	if (!lpass)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base_top = devm_ioremap_resource(dev, res);
+	base_top = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base_top))
 		return PTR_ERR(base_top);
 
-- 
2.39.0


WARNING: multiple messages have this Message-ID (diff)
From: Yangtao Li <frank.li@vivo.com>
To: Lee Jones <lee@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Alim Akhtar <alim.akhtar@samsung.com>
Cc: Yangtao Li <frank.li@vivo.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 4/7] mfd: exynos-lpass: Convert to devm_platform_ioremap_resource()
Date: Thu,  6 Jul 2023 19:39:36 +0800	[thread overview]
Message-ID: <20230706113939.1178-4-frank.li@vivo.com> (raw)
In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com>

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/mfd/exynos-lpass.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c
index 166cd21088cd..1506d8d352b1 100644
--- a/drivers/mfd/exynos-lpass.c
+++ b/drivers/mfd/exynos-lpass.c
@@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	struct exynos_lpass *lpass;
 	void __iomem *base_top;
-	struct resource *res;
 
 	lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL);
 	if (!lpass)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base_top = devm_ioremap_resource(dev, res);
+	base_top = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base_top))
 		return PTR_ERR(base_top);
 
-- 
2.39.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2023-07-06 11:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06 11:39 [PATCH 1/7] mfd: atmel-hlcdc: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-06 11:39 ` Yangtao Li
2023-07-06 11:39 ` [PATCH 2/7] mfd: omap-usb-tll: " Yangtao Li
2023-07-13 13:39   ` Lee Jones
2023-07-06 11:39 ` [PATCH 3/7] mfd: ti_am335x_tscadc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-13 13:40   ` Lee Jones
2023-07-06 11:39 ` Yangtao Li [this message]
2023-07-06 11:39   ` [PATCH 4/7] mfd: exynos-lpass: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-13 13:41   ` Lee Jones
2023-07-13 13:41     ` Lee Jones
2023-07-06 11:39 ` [PATCH 5/7] mfd: omap-usb-host: " Yangtao Li
2023-07-13 13:41   ` Lee Jones
2023-07-06 11:39 ` [PATCH 6/7] mfd: stm32-timers: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-06 11:39   ` Yangtao Li
2023-07-13 13:41   ` Lee Jones
2023-07-13 13:41     ` Lee Jones
2023-07-06 11:39 ` [PATCH 7/7] mfd: hi655x-pmic: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-13 13:42   ` Lee Jones
2023-07-13 13:39 ` [PATCH 1/7] mfd: atmel-hlcdc: " Lee Jones
2023-07-13 13:39   ` Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230706113939.1178-4-frank.li@vivo.com \
    --to=frank.li@vivo.com \
    --cc=alim.akhtar@samsung.com \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.