linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code
@ 2019-10-06 10:29 YueHaibing
  2019-10-06 10:29 ` [PATCH -next 01/34] rtc: asm9260: " YueHaibing
                   ` (34 more replies)
  0 siblings, 35 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

devm_platform_ioremap_resource() internally have platform_get_resource()
and devm_ioremap_resource() in it. So instead of calling them separately
use devm_platform_ioremap_resource() directly.

YueHaibing (34):
  rtc: asm9260: use devm_platform_ioremap_resource() to simplify code
  rtc: rtc-aspeed: use devm_platform_ioremap_resource() to simplify code
  rtc: brcmstb-waketimer: use devm_platform_ioremap_resource() to
    simplify code
  rtc: at91sam9: use devm_platform_ioremap_resource() to simplify code
  rtc: cadence: use devm_platform_ioremap_resource() to simplify code
  rtc: coh901331: use devm_platform_ioremap_resource() to simplify code
  rtc: davinci: use devm_platform_ioremap_resource() to simplify code
  rtc: digicolor: use devm_platform_ioremap_resource() to simplify code
  rtc: ds1216: use devm_platform_ioremap_resource() to simplify code
  rtc: ds1511: use devm_platform_ioremap_resource() to simplify code
  rtc: ds1553: use devm_platform_ioremap_resource() to simplify code
  rtc: ep93xx: use devm_platform_ioremap_resource() to simplify code
  rtc: jz4740: use devm_platform_ioremap_resource() to simplify code
  rtc: lpc24xx: use devm_platform_ioremap_resource() to simplify code
  rtc: lpc32xx: use devm_platform_ioremap_resource() to simplify code
  rtc: meson: use devm_platform_ioremap_resource() to simplify code
  rtc: mt7622: use devm_platform_ioremap_resource() to simplify code
  rtc: mv: use devm_platform_ioremap_resource() to simplify code
  rtc: omap: use devm_platform_ioremap_resource() to simplify code
  rtc: pic32: use devm_platform_ioremap_resource() to simplify code
  rtc: rtd119x: use devm_platform_ioremap_resource() to simplify code
  rtc: s3c: use devm_platform_ioremap_resource() to simplify code
  rtc: sa1100: use devm_platform_ioremap_resource() to simplify code
  rtc: spear: use devm_platform_ioremap_resource() to simplify code
  rtc: stk17ta8: use devm_platform_ioremap_resource() to simplify code
  rtc: ds1286: use devm_platform_ioremap_resource() to simplify code
  rtc: st-lpc: use devm_platform_ioremap_resource() to simplify code
  rtc: stm32: use devm_platform_ioremap_resource() to simplify code
  rtc: sunxi: use devm_platform_ioremap_resource() to simplify code
  rtc: tegra: use devm_platform_ioremap_resource() to simplify code
  rtc: tx4939: use devm_platform_ioremap_resource() to simplify code
  rtc: vt8500: use devm_platform_ioremap_resource() to simplify code
  rtc: xgene: use devm_platform_ioremap_resource() to simplify code
  rtc: zynqmp: use devm_platform_ioremap_resource() to simplify code

 drivers/rtc/rtc-asm9260.c           | 4 +---
 drivers/rtc/rtc-aspeed.c            | 4 +---
 drivers/rtc/rtc-at91sam9.c          | 4 +---
 drivers/rtc/rtc-brcmstb-waketimer.c | 4 +---
 drivers/rtc/rtc-cadence.c           | 4 +---
 drivers/rtc/rtc-coh901331.c         | 4 +---
 drivers/rtc/rtc-davinci.c           | 4 +---
 drivers/rtc/rtc-digicolor.c         | 4 +---
 drivers/rtc/rtc-ds1216.c            | 4 +---
 drivers/rtc/rtc-ds1286.c            | 4 +---
 drivers/rtc/rtc-ds1511.c            | 4 +---
 drivers/rtc/rtc-ds1553.c            | 4 +---
 drivers/rtc/rtc-ep93xx.c            | 4 +---
 drivers/rtc/rtc-jz4740.c            | 4 +---
 drivers/rtc/rtc-lpc24xx.c           | 4 +---
 drivers/rtc/rtc-lpc32xx.c           | 4 +---
 drivers/rtc/rtc-meson.c             | 4 +---
 drivers/rtc/rtc-mt7622.c            | 4 +---
 drivers/rtc/rtc-mv.c                | 4 +---
 drivers/rtc/rtc-omap.c              | 4 +---
 drivers/rtc/rtc-pic32.c             | 4 +---
 drivers/rtc/rtc-rtd119x.c           | 4 +---
 drivers/rtc/rtc-s3c.c               | 4 +---
 drivers/rtc/rtc-sa1100.c            | 4 +---
 drivers/rtc/rtc-spear.c             | 4 +---
 drivers/rtc/rtc-st-lpc.c            | 4 +---
 drivers/rtc/rtc-stk17ta8.c          | 4 +---
 drivers/rtc/rtc-stm32.c             | 4 +---
 drivers/rtc/rtc-sunxi.c             | 4 +---
 drivers/rtc/rtc-tegra.c             | 4 +---
 drivers/rtc/rtc-tx4939.c            | 4 +---
 drivers/rtc/rtc-vt8500.c            | 4 +---
 drivers/rtc/rtc-xgene.c             | 4 +---
 drivers/rtc/rtc-zynqmp.c            | 5 +----
 34 files changed, 34 insertions(+), 103 deletions(-)

-- 
2.7.4



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

* [PATCH -next 01/34] rtc: asm9260: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 02/34] rtc: rtc-aspeed: " YueHaibing
                   ` (33 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-asm9260.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-asm9260.c b/drivers/rtc/rtc-asm9260.c
index 10413d8..10064bd 100644
--- a/drivers/rtc/rtc-asm9260.c
+++ b/drivers/rtc/rtc-asm9260.c
@@ -245,7 +245,6 @@ static int asm9260_rtc_probe(struct platform_device *pdev)
 {
 	struct asm9260_rtc_priv *priv;
 	struct device *dev = &pdev->dev;
-	struct resource	*res;
 	int irq_alarm, ret;
 	u32 ccr;
 
@@ -260,8 +259,7 @@ static int asm9260_rtc_probe(struct platform_device *pdev)
 	if (irq_alarm < 0)
 		return irq_alarm;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->iobase = devm_ioremap_resource(dev, res);
+	priv->iobase = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(priv->iobase))
 		return PTR_ERR(priv->iobase);
 
-- 
2.7.4



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

* [PATCH -next 02/34] rtc: rtc-aspeed: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
  2019-10-06 10:29 ` [PATCH -next 01/34] rtc: asm9260: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 03/34] rtc: brcmstb-waketimer: " YueHaibing
                   ` (32 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-aspeed.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-aspeed.c b/drivers/rtc/rtc-aspeed.c
index e351d35..eacdd06 100644
--- a/drivers/rtc/rtc-aspeed.c
+++ b/drivers/rtc/rtc-aspeed.c
@@ -85,14 +85,12 @@ static const struct rtc_class_ops aspeed_rtc_ops = {
 static int aspeed_rtc_probe(struct platform_device *pdev)
 {
 	struct aspeed_rtc *rtc;
-	struct resource *res;
 
 	rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
 	if (!rtc)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->base = devm_ioremap_resource(&pdev->dev, res);
+	rtc->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->base))
 		return PTR_ERR(rtc->base);
 
-- 
2.7.4



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

* [PATCH -next 03/34] rtc: brcmstb-waketimer: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
  2019-10-06 10:29 ` [PATCH -next 01/34] rtc: asm9260: " YueHaibing
  2019-10-06 10:29 ` [PATCH -next 02/34] rtc: rtc-aspeed: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-07 18:15   ` Florian Fainelli
  2019-10-06 10:29 ` [PATCH -next 04/34] rtc: at91sam9: " YueHaibing
                   ` (31 subsequent siblings)
  34 siblings, 1 reply; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-brcmstb-waketimer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c
index 3e9800f..cb7af87 100644
--- a/drivers/rtc/rtc-brcmstb-waketimer.c
+++ b/drivers/rtc/rtc-brcmstb-waketimer.c
@@ -200,7 +200,6 @@ static int brcmstb_waketmr_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 	struct brcmstb_waketmr *timer;
-	struct resource *res;
 	int ret;
 
 	timer = devm_kzalloc(dev, sizeof(*timer), GFP_KERNEL);
@@ -210,8 +209,7 @@ static int brcmstb_waketmr_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, timer);
 	timer->dev = dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	timer->base = devm_ioremap_resource(dev, res);
+	timer->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(timer->base))
 		return PTR_ERR(timer->base);
 
-- 
2.7.4



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

* [PATCH -next 04/34] rtc: at91sam9: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (2 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 03/34] rtc: brcmstb-waketimer: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 05/34] rtc: cadence: " YueHaibing
                   ` (30 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-at91sam9.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c
index bb3ba7b..e39e898 100644
--- a/drivers/rtc/rtc-at91sam9.c
+++ b/drivers/rtc/rtc-at91sam9.c
@@ -334,7 +334,6 @@ static const struct rtc_class_ops at91_rtc_ops = {
  */
 static int at91_rtc_probe(struct platform_device *pdev)
 {
-	struct resource	*r;
 	struct sam9_rtc	*rtc;
 	int		ret, irq;
 	u32		mr;
@@ -358,8 +357,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, rtc);
 
-	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->rtt = devm_ioremap_resource(&pdev->dev, r);
+	rtc->rtt = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->rtt))
 		return PTR_ERR(rtc->rtt);
 
-- 
2.7.4



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

* [PATCH -next 05/34] rtc: cadence: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (3 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 04/34] rtc: at91sam9: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 06/34] rtc: coh901331: " YueHaibing
                   ` (29 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-cadence.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-cadence.c b/drivers/rtc/rtc-cadence.c
index 592aae2..595d5d2 100644
--- a/drivers/rtc/rtc-cadence.c
+++ b/drivers/rtc/rtc-cadence.c
@@ -255,7 +255,6 @@ static const struct rtc_class_ops cdns_rtc_ops = {
 static int cdns_rtc_probe(struct platform_device *pdev)
 {
 	struct cdns_rtc *crtc;
-	struct resource *res;
 	int ret;
 	unsigned long ref_clk_freq;
 
@@ -263,8 +262,7 @@ static int cdns_rtc_probe(struct platform_device *pdev)
 	if (!crtc)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	crtc->regs = devm_ioremap_resource(&pdev->dev, res);
+	crtc->regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(crtc->regs))
 		return PTR_ERR(crtc->regs);
 
-- 
2.7.4



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

* [PATCH -next 06/34] rtc: coh901331: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (4 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 05/34] rtc: cadence: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-09  7:46   ` Linus Walleij
  2019-10-06 10:29 ` [PATCH -next 07/34] rtc: davinci: " YueHaibing
                   ` (28 subsequent siblings)
  34 siblings, 1 reply; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-coh901331.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c
index 4ac8508..da59917 100644
--- a/drivers/rtc/rtc-coh901331.c
+++ b/drivers/rtc/rtc-coh901331.c
@@ -164,15 +164,13 @@ static int __init coh901331_probe(struct platform_device *pdev)
 {
 	int ret;
 	struct coh901331_port *rtap;
-	struct resource *res;
 
 	rtap = devm_kzalloc(&pdev->dev,
 			    sizeof(struct coh901331_port), GFP_KERNEL);
 	if (!rtap)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtap->virtbase  = devm_ioremap_resource(&pdev->dev, res);
+	rtap->virtbase  = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtap->virtbase))
 		return PTR_ERR(rtap->virtbase);
 
-- 
2.7.4



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

* [PATCH -next 07/34] rtc: davinci: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (5 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 06/34] rtc: coh901331: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 08/34] rtc: digicolor: " YueHaibing
                   ` (27 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-davinci.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c
index d8e0db2..390b735 100644
--- a/drivers/rtc/rtc-davinci.c
+++ b/drivers/rtc/rtc-davinci.c
@@ -469,7 +469,6 @@ static int __init davinci_rtc_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 	struct davinci_rtc *davinci_rtc;
-	struct resource *res;
 	int ret = 0;
 
 	davinci_rtc = devm_kzalloc(&pdev->dev, sizeof(struct davinci_rtc), GFP_KERNEL);
@@ -480,8 +479,7 @@ static int __init davinci_rtc_probe(struct platform_device *pdev)
 	if (davinci_rtc->irq < 0)
 		return davinci_rtc->irq;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	davinci_rtc->base = devm_ioremap_resource(dev, res);
+	davinci_rtc->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(davinci_rtc->base))
 		return PTR_ERR(davinci_rtc->base);
 
-- 
2.7.4



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

* [PATCH -next 08/34] rtc: digicolor: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (6 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 07/34] rtc: davinci: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 09/34] rtc: ds1216: " YueHaibing
                   ` (26 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-digicolor.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
index 0aecc3f..200d85b 100644
--- a/drivers/rtc/rtc-digicolor.c
+++ b/drivers/rtc/rtc-digicolor.c
@@ -175,7 +175,6 @@ static irqreturn_t dc_rtc_irq(int irq, void *dev_id)
 
 static int __init dc_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct dc_rtc *rtc;
 	int irq, ret;
 
@@ -183,8 +182,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
 	if (!rtc)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->regs = devm_ioremap_resource(&pdev->dev, res);
+	rtc->regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->regs))
 		return PTR_ERR(rtc->regs);
 
-- 
2.7.4



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

* [PATCH -next 09/34] rtc: ds1216: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (7 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 08/34] rtc: digicolor: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 10/34] rtc: ds1511: " YueHaibing
                   ` (25 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-ds1216.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-ds1216.c b/drivers/rtc/rtc-ds1216.c
index b225bcf..7eeb3f3 100644
--- a/drivers/rtc/rtc-ds1216.c
+++ b/drivers/rtc/rtc-ds1216.c
@@ -137,7 +137,6 @@ static const struct rtc_class_ops ds1216_rtc_ops = {
 
 static int __init ds1216_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct ds1216_priv *priv;
 	u8 dummy[8];
 
@@ -147,8 +146,7 @@ static int __init ds1216_rtc_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, priv);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->ioaddr = devm_ioremap_resource(&pdev->dev, res);
+	priv->ioaddr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(priv->ioaddr))
 		return PTR_ERR(priv->ioaddr);
 
-- 
2.7.4



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

* [PATCH -next 10/34] rtc: ds1511: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (8 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 09/34] rtc: ds1216: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 11/34] rtc: ds1553: " YueHaibing
                   ` (24 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-ds1511.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index b6a4775..a63872c 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -414,7 +414,6 @@ static int ds1511_nvram_write(void *priv, unsigned int pos, void *buf,
 
 static int ds1511_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct rtc_plat_data *pdata;
 	int ret = 0;
 	struct nvmem_config ds1511_nvmem_cfg = {
@@ -431,8 +430,7 @@ static int ds1511_rtc_probe(struct platform_device *pdev)
 	if (!pdata)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	ds1511_base = devm_ioremap_resource(&pdev->dev, res);
+	ds1511_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(ds1511_base))
 		return PTR_ERR(ds1511_base);
 	pdata->ioaddr = ds1511_base;
-- 
2.7.4



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

* [PATCH -next 11/34] rtc: ds1553: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (9 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 10/34] rtc: ds1511: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 12/34] rtc: ep93xx: " YueHaibing
                   ` (23 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-ds1553.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-ds1553.c b/drivers/rtc/rtc-ds1553.c
index 219d6b5..cdf5e05 100644
--- a/drivers/rtc/rtc-ds1553.c
+++ b/drivers/rtc/rtc-ds1553.c
@@ -249,7 +249,6 @@ static int ds1553_nvram_write(void *priv, unsigned int pos, void *val,
 
 static int ds1553_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	unsigned int cen, sec;
 	struct rtc_plat_data *pdata;
 	void __iomem *ioaddr;
@@ -268,8 +267,7 @@ static int ds1553_rtc_probe(struct platform_device *pdev)
 	if (!pdata)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	ioaddr = devm_ioremap_resource(&pdev->dev, res);
+	ioaddr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(ioaddr))
 		return PTR_ERR(ioaddr);
 	pdata->ioaddr = ioaddr;
-- 
2.7.4



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

* [PATCH -next 12/34] rtc: ep93xx: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (10 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 11/34] rtc: ds1553: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 13/34] rtc: jz4740: " YueHaibing
                   ` (22 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-ep93xx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-ep93xx.c b/drivers/rtc/rtc-ep93xx.c
index 1766496..8ec9ea1 100644
--- a/drivers/rtc/rtc-ep93xx.c
+++ b/drivers/rtc/rtc-ep93xx.c
@@ -122,15 +122,13 @@ static const struct attribute_group ep93xx_rtc_sysfs_files = {
 static int ep93xx_rtc_probe(struct platform_device *pdev)
 {
 	struct ep93xx_rtc *ep93xx_rtc;
-	struct resource *res;
 	int err;
 
 	ep93xx_rtc = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_rtc), GFP_KERNEL);
 	if (!ep93xx_rtc)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	ep93xx_rtc->mmio_base = devm_ioremap_resource(&pdev->dev, res);
+	ep93xx_rtc->mmio_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(ep93xx_rtc->mmio_base))
 		return PTR_ERR(ep93xx_rtc->mmio_base);
 
-- 
2.7.4



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

* [PATCH -next 13/34] rtc: jz4740: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (11 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 12/34] rtc: ep93xx: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 14/34] rtc: lpc24xx: " YueHaibing
                   ` (21 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-jz4740.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c
index 3089645..18023e4 100644
--- a/drivers/rtc/rtc-jz4740.c
+++ b/drivers/rtc/rtc-jz4740.c
@@ -307,7 +307,6 @@ static int jz4740_rtc_probe(struct platform_device *pdev)
 {
 	int ret;
 	struct jz4740_rtc *rtc;
-	struct resource *mem;
 	const struct platform_device_id *id = platform_get_device_id(pdev);
 	const struct of_device_id *of_id = of_match_device(
 			jz4740_rtc_of_match, &pdev->dev);
@@ -326,8 +325,7 @@ static int jz4740_rtc_probe(struct platform_device *pdev)
 	if (rtc->irq < 0)
 		return -ENOENT;
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->base = devm_ioremap_resource(&pdev->dev, mem);
+	rtc->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->base))
 		return PTR_ERR(rtc->base);
 
-- 
2.7.4



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

* [PATCH -next 14/34] rtc: lpc24xx: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (12 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 13/34] rtc: jz4740: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 15/34] rtc: lpc32xx: " YueHaibing
                   ` (20 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-lpc24xx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-lpc24xx.c b/drivers/rtc/rtc-lpc24xx.c
index a8bb156..00ef16b 100644
--- a/drivers/rtc/rtc-lpc24xx.c
+++ b/drivers/rtc/rtc-lpc24xx.c
@@ -194,15 +194,13 @@ static const struct rtc_class_ops lpc24xx_rtc_ops = {
 static int lpc24xx_rtc_probe(struct platform_device *pdev)
 {
 	struct lpc24xx_rtc *rtc;
-	struct resource *res;
 	int irq, ret;
 
 	rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
 	if (!rtc)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res);
+	rtc->rtc_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->rtc_base))
 		return PTR_ERR(rtc->rtc_base);
 
-- 
2.7.4



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

* [PATCH -next 15/34] rtc: lpc32xx: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (13 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 14/34] rtc: lpc24xx: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 16/34] rtc: meson: " YueHaibing
                   ` (19 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-lpc32xx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-lpc32xx.c b/drivers/rtc/rtc-lpc32xx.c
index ac39323..b6a0d4a 100644
--- a/drivers/rtc/rtc-lpc32xx.c
+++ b/drivers/rtc/rtc-lpc32xx.c
@@ -185,7 +185,6 @@ static const struct rtc_class_ops lpc32xx_rtc_ops = {
 
 static int lpc32xx_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct lpc32xx_rtc *rtc;
 	int err;
 	u32 tmp;
@@ -194,8 +193,7 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
 	if (unlikely(!rtc))
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->rtc_base = devm_ioremap_resource(&pdev->dev, res);
+	rtc->rtc_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->rtc_base))
 		return PTR_ERR(rtc->rtc_base);
 
-- 
2.7.4



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

* [PATCH -next 16/34] rtc: meson: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (14 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 15/34] rtc: lpc32xx: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-07 18:09   ` Kevin Hilman
  2019-10-07 20:01   ` Martin Blumenstingl
  2019-10-06 10:29 ` [PATCH -next 17/34] rtc: mt7622: " YueHaibing
                   ` (18 subsequent siblings)
  34 siblings, 2 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-meson.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
index e08b981..9bd8478 100644
--- a/drivers/rtc/rtc-meson.c
+++ b/drivers/rtc/rtc-meson.c
@@ -292,7 +292,6 @@ static int meson_rtc_probe(struct platform_device *pdev)
 	};
 	struct device *dev = &pdev->dev;
 	struct meson_rtc *rtc;
-	struct resource *res;
 	void __iomem *base;
 	int ret;
 	u32 tm;
@@ -312,8 +311,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
 	rtc->rtc->ops = &meson_rtc_ops;
 	rtc->rtc->range_max = U32_MAX;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(dev, res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



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

* [PATCH -next 17/34] rtc: mt7622: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (15 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 16/34] rtc: meson: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 18/34] rtc: mv: " YueHaibing
                   ` (17 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-mt7622.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-mt7622.c b/drivers/rtc/rtc-mt7622.c
index 16bd26b..f1e3563 100644
--- a/drivers/rtc/rtc-mt7622.c
+++ b/drivers/rtc/rtc-mt7622.c
@@ -303,7 +303,6 @@ MODULE_DEVICE_TABLE(of, mtk_rtc_match);
 static int mtk_rtc_probe(struct platform_device *pdev)
 {
 	struct mtk_rtc *hw;
-	struct resource *res;
 	int ret;
 
 	hw = devm_kzalloc(&pdev->dev, sizeof(*hw), GFP_KERNEL);
@@ -312,8 +311,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, hw);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	hw->base = devm_ioremap_resource(&pdev->dev, res);
+	hw->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(hw->base))
 		return PTR_ERR(hw->base);
 
-- 
2.7.4



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

* [PATCH -next 18/34] rtc: mv: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (16 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 17/34] rtc: mt7622: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 19/34] rtc: omap: " YueHaibing
                   ` (16 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-mv.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c
index ab9db57..d5f190e5 100644
--- a/drivers/rtc/rtc-mv.c
+++ b/drivers/rtc/rtc-mv.c
@@ -212,7 +212,6 @@ static const struct rtc_class_ops mv_rtc_alarm_ops = {
 
 static int __init mv_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct rtc_plat_data *pdata;
 	u32 rtc_time;
 	int ret = 0;
@@ -221,8 +220,7 @@ static int __init mv_rtc_probe(struct platform_device *pdev)
 	if (!pdata)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
+	pdata->ioaddr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(pdata->ioaddr))
 		return PTR_ERR(pdata->ioaddr);
 
-- 
2.7.4



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

* [PATCH -next 19/34] rtc: omap: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (17 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 18/34] rtc: mv: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 20/34] rtc: pic32: " YueHaibing
                   ` (15 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-omap.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index a2941c8..988a4df 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -727,7 +727,6 @@ static struct nvmem_config omap_rtc_nvmem_config = {
 static int omap_rtc_probe(struct platform_device *pdev)
 {
 	struct omap_rtc	*rtc;
-	struct resource	*res;
 	u8 reg, mask, new_ctrl;
 	const struct platform_device_id *id_entry;
 	const struct of_device_id *of_id;
@@ -764,8 +763,7 @@ static int omap_rtc_probe(struct platform_device *pdev)
 	if (!IS_ERR(rtc->clk))
 		clk_prepare_enable(rtc->clk);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->base = devm_ioremap_resource(&pdev->dev, res);
+	rtc->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->base)) {
 		clk_disable_unprepare(rtc->clk);
 		return PTR_ERR(rtc->base);
-- 
2.7.4



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

* [PATCH -next 20/34] rtc: pic32: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (18 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 19/34] rtc: omap: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 21/34] rtc: rtd119x: " YueHaibing
                   ` (14 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-pic32.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-pic32.c b/drivers/rtc/rtc-pic32.c
index 17653ed..2b69467 100644
--- a/drivers/rtc/rtc-pic32.c
+++ b/drivers/rtc/rtc-pic32.c
@@ -298,7 +298,6 @@ static int pic32_rtc_remove(struct platform_device *pdev)
 static int pic32_rtc_probe(struct platform_device *pdev)
 {
 	struct pic32_rtc_dev *pdata;
-	struct resource *res;
 	int ret;
 
 	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
@@ -311,8 +310,7 @@ static int pic32_rtc_probe(struct platform_device *pdev)
 	if (pdata->alarm_irq < 0)
 		return pdata->alarm_irq;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	pdata->reg_base = devm_ioremap_resource(&pdev->dev, res);
+	pdata->reg_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(pdata->reg_base))
 		return PTR_ERR(pdata->reg_base);
 
-- 
2.7.4



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

* [PATCH -next 21/34] rtc: rtd119x: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (19 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 20/34] rtc: pic32: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 22/34] rtc: s3c: " YueHaibing
                   ` (13 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-rtd119x.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-rtd119x.c b/drivers/rtc/rtc-rtd119x.c
index b233559..bb98f2d 100644
--- a/drivers/rtc/rtc-rtd119x.c
+++ b/drivers/rtc/rtc-rtd119x.c
@@ -167,7 +167,6 @@ static const struct of_device_id rtd119x_rtc_dt_ids[] = {
 static int rtd119x_rtc_probe(struct platform_device *pdev)
 {
 	struct rtd119x_rtc *data;
-	struct resource *res;
 	u32 val;
 	int ret;
 
@@ -178,8 +177,7 @@ static int rtd119x_rtc_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, data);
 	data->base_year = 2014;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	data->base = devm_ioremap_resource(&pdev->dev, res);
+	data->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(data->base))
 		return PTR_ERR(data->base);
 
-- 
2.7.4



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

* [PATCH -next 22/34] rtc: s3c: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (20 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 21/34] rtc: rtd119x: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 23/34] rtc: sa1100: " YueHaibing
                   ` (12 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-s3c.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index 7801249..e1b50e6 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -444,7 +444,6 @@ static int s3c_rtc_probe(struct platform_device *pdev)
 {
 	struct s3c_rtc *info = NULL;
 	struct rtc_time rtc_tm;
-	struct resource *res;
 	int ret;
 
 	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
@@ -475,8 +474,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
 		info->irq_tick, info->irq_alarm);
 
 	/* get the memory region */
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	info->base = devm_ioremap_resource(&pdev->dev, res);
+	info->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(info->base))
 		return PTR_ERR(info->base);
 
-- 
2.7.4



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

* [PATCH -next 23/34] rtc: sa1100: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (21 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 22/34] rtc: s3c: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 24/34] rtc: spear: " YueHaibing
                   ` (11 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-sa1100.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c
index 86fa723..d37893f 100644
--- a/drivers/rtc/rtc-sa1100.c
+++ b/drivers/rtc/rtc-sa1100.c
@@ -252,7 +252,6 @@ EXPORT_SYMBOL_GPL(sa1100_rtc_init);
 static int sa1100_rtc_probe(struct platform_device *pdev)
 {
 	struct sa1100_rtc *info;
-	struct resource *iores;
 	void __iomem *base;
 	int irq_1hz, irq_alarm;
 	int ret;
@@ -281,8 +280,7 @@ static int sa1100_rtc_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, iores);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



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

* [PATCH -next 24/34] rtc: spear: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (22 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 23/34] rtc: sa1100: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 25/34] rtc: stk17ta8: " YueHaibing
                   ` (10 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-spear.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-spear.c b/drivers/rtc/rtc-spear.c
index 9f23b24..833daeb 100644
--- a/drivers/rtc/rtc-spear.c
+++ b/drivers/rtc/rtc-spear.c
@@ -347,7 +347,6 @@ static const struct rtc_class_ops spear_rtc_ops = {
 
 static int spear_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct spear_rtc_config *config;
 	int status = 0;
 	int irq;
@@ -369,8 +368,7 @@ static int spear_rtc_probe(struct platform_device *pdev)
 		return status;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	config->ioaddr = devm_ioremap_resource(&pdev->dev, res);
+	config->ioaddr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(config->ioaddr))
 		return PTR_ERR(config->ioaddr);
 
-- 
2.7.4



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

* [PATCH -next 25/34] rtc: stk17ta8: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (23 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 24/34] rtc: spear: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 26/34] rtc: ds1286: " YueHaibing
                   ` (9 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-stk17ta8.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-stk17ta8.c b/drivers/rtc/rtc-stk17ta8.c
index a833ebc..01a4504 100644
--- a/drivers/rtc/rtc-stk17ta8.c
+++ b/drivers/rtc/rtc-stk17ta8.c
@@ -256,7 +256,6 @@ static int stk17ta8_nvram_write(void *priv, unsigned int pos, void *val,
 
 static int stk17ta8_rtc_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	unsigned int cal;
 	unsigned int flags;
 	struct rtc_plat_data *pdata;
@@ -275,8 +274,7 @@ static int stk17ta8_rtc_probe(struct platform_device *pdev)
 	if (!pdata)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	ioaddr = devm_ioremap_resource(&pdev->dev, res);
+	ioaddr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(ioaddr))
 		return PTR_ERR(ioaddr);
 	pdata->ioaddr = ioaddr;
-- 
2.7.4



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

* [PATCH -next 26/34] rtc: ds1286: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (24 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 25/34] rtc: stk17ta8: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 27/34] rtc: st-lpc: " YueHaibing
                   ` (8 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-ds1286.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-ds1286.c b/drivers/rtc/rtc-ds1286.c
index a06508b..7acf849 100644
--- a/drivers/rtc/rtc-ds1286.c
+++ b/drivers/rtc/rtc-ds1286.c
@@ -323,15 +323,13 @@ static const struct rtc_class_ops ds1286_ops = {
 static int ds1286_probe(struct platform_device *pdev)
 {
 	struct rtc_device *rtc;
-	struct resource *res;
 	struct ds1286_priv *priv;
 
 	priv = devm_kzalloc(&pdev->dev, sizeof(struct ds1286_priv), GFP_KERNEL);
 	if (!priv)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->rtcregs = devm_ioremap_resource(&pdev->dev, res);
+	priv->rtcregs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(priv->rtcregs))
 		return PTR_ERR(priv->rtcregs);
 
-- 
2.7.4



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

* [PATCH -next 27/34] rtc: st-lpc: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (25 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 26/34] rtc: ds1286: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 28/34] rtc: stm32: " YueHaibing
                   ` (7 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-st-lpc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-st-lpc.c b/drivers/rtc/rtc-st-lpc.c
index 49474a3..f1c5471 100644
--- a/drivers/rtc/rtc-st-lpc.c
+++ b/drivers/rtc/rtc-st-lpc.c
@@ -186,7 +186,6 @@ static int st_rtc_probe(struct platform_device *pdev)
 {
 	struct device_node *np = pdev->dev.of_node;
 	struct st_rtc *rtc;
-	struct resource *res;
 	uint32_t mode;
 	int ret = 0;
 
@@ -210,8 +209,7 @@ static int st_rtc_probe(struct platform_device *pdev)
 
 	spin_lock_init(&rtc->lock);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->ioaddr = devm_ioremap_resource(&pdev->dev, res);
+	rtc->ioaddr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->ioaddr))
 		return PTR_ERR(rtc->ioaddr);
 
-- 
2.7.4



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

* [PATCH -next 28/34] rtc: stm32: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (26 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 27/34] rtc: st-lpc: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 29/34] rtc: sunxi: " YueHaibing
                   ` (6 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-stm32.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c
index 2999e33..781cabb 100644
--- a/drivers/rtc/rtc-stm32.c
+++ b/drivers/rtc/rtc-stm32.c
@@ -693,15 +693,13 @@ static int stm32_rtc_probe(struct platform_device *pdev)
 {
 	struct stm32_rtc *rtc;
 	const struct stm32_rtc_registers *regs;
-	struct resource *res;
 	int ret;
 
 	rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
 	if (!rtc)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	rtc->base = devm_ioremap_resource(&pdev->dev, res);
+	rtc->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(rtc->base))
 		return PTR_ERR(rtc->base);
 
-- 
2.7.4



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

* [PATCH -next 29/34] rtc: sunxi: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (27 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 28/34] rtc: stm32: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-07  8:11   ` Chen-Yu Tsai
  2019-10-06 10:29 ` [PATCH -next 30/34] rtc: tegra: " YueHaibing
                   ` (5 subsequent siblings)
  34 siblings, 1 reply; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-sunxi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-sunxi.c b/drivers/rtc/rtc-sunxi.c
index 9b6f248..f5d7f44 100644
--- a/drivers/rtc/rtc-sunxi.c
+++ b/drivers/rtc/rtc-sunxi.c
@@ -422,7 +422,6 @@ MODULE_DEVICE_TABLE(of, sunxi_rtc_dt_ids);
 static int sunxi_rtc_probe(struct platform_device *pdev)
 {
 	struct sunxi_rtc_dev *chip;
-	struct resource *res;
 	int ret;
 
 	chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL);
@@ -436,8 +435,7 @@ static int sunxi_rtc_probe(struct platform_device *pdev)
 	if (IS_ERR(chip->rtc))
 		return PTR_ERR(chip->rtc);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	chip->base = devm_ioremap_resource(&pdev->dev, res);
+	chip->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(chip->base))
 		return PTR_ERR(chip->base);
 
-- 
2.7.4



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

* [PATCH -next 30/34] rtc: tegra: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (28 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 29/34] rtc: sunxi: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 31/34] rtc: tx4939: " YueHaibing
                   ` (4 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-tegra.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c
index 69d695b..0159069 100644
--- a/drivers/rtc/rtc-tegra.c
+++ b/drivers/rtc/rtc-tegra.c
@@ -277,15 +277,13 @@ MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match);
 static int tegra_rtc_probe(struct platform_device *pdev)
 {
 	struct tegra_rtc_info *info;
-	struct resource *res;
 	int ret;
 
 	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
 	if (!info)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	info->base = devm_ioremap_resource(&pdev->dev, res);
+	info->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(info->base))
 		return PTR_ERR(info->base);
 
-- 
2.7.4



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

* [PATCH -next 31/34] rtc: tx4939: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (29 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 30/34] rtc: tegra: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 32/34] rtc: vt8500: " YueHaibing
                   ` (3 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-tx4939.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c
index 5a29915..715b829 100644
--- a/drivers/rtc/rtc-tx4939.c
+++ b/drivers/rtc/rtc-tx4939.c
@@ -236,7 +236,6 @@ static int __init tx4939_rtc_probe(struct platform_device *pdev)
 {
 	struct rtc_device *rtc;
 	struct tx4939rtc_plat_data *pdata;
-	struct resource *res;
 	int irq, ret;
 	struct nvmem_config nvmem_cfg = {
 		.name = "tx4939_nvram",
@@ -253,8 +252,7 @@ static int __init tx4939_rtc_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	platform_set_drvdata(pdev, pdata);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	pdata->rtcreg = devm_ioremap_resource(&pdev->dev, res);
+	pdata->rtcreg = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(pdata->rtcreg))
 		return PTR_ERR(pdata->rtcreg);
 
-- 
2.7.4



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

* [PATCH -next 32/34] rtc: vt8500: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (30 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 31/34] rtc: tx4939: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 33/34] rtc: xgene: " YueHaibing
                   ` (2 subsequent siblings)
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-vt8500.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c
index d5d14cf..11859b9 100644
--- a/drivers/rtc/rtc-vt8500.c
+++ b/drivers/rtc/rtc-vt8500.c
@@ -200,7 +200,6 @@ static const struct rtc_class_ops vt8500_rtc_ops = {
 static int vt8500_rtc_probe(struct platform_device *pdev)
 {
 	struct vt8500_rtc *vt8500_rtc;
-	struct resource	*res;
 	int ret;
 
 	vt8500_rtc = devm_kzalloc(&pdev->dev,
@@ -215,8 +214,7 @@ static int vt8500_rtc_probe(struct platform_device *pdev)
 	if (vt8500_rtc->irq_alarm < 0)
 		return vt8500_rtc->irq_alarm;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	vt8500_rtc->regbase = devm_ioremap_resource(&pdev->dev, res);
+	vt8500_rtc->regbase = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(vt8500_rtc->regbase))
 		return PTR_ERR(vt8500_rtc->regbase);
 
-- 
2.7.4



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

* [PATCH -next 33/34] rtc: xgene: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (31 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 32/34] rtc: vt8500: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-06 10:29 ` [PATCH -next 34/34] rtc: zynqmp: " YueHaibing
  2019-10-07 10:10 ` [PATCH -next 00/34] rtc: " Alexandre Belloni
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-xgene.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-xgene.c b/drivers/rtc/rtc-xgene.c
index 9683fbf..603c4e4 100644
--- a/drivers/rtc/rtc-xgene.c
+++ b/drivers/rtc/rtc-xgene.c
@@ -137,7 +137,6 @@ static irqreturn_t xgene_rtc_interrupt(int irq, void *id)
 static int xgene_rtc_probe(struct platform_device *pdev)
 {
 	struct xgene_rtc_dev *pdata;
-	struct resource *res;
 	int ret;
 	int irq;
 
@@ -147,8 +146,7 @@ static int xgene_rtc_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, pdata);
 	pdata->dev = &pdev->dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	pdata->csr_base = devm_ioremap_resource(&pdev->dev, res);
+	pdata->csr_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(pdata->csr_base))
 		return PTR_ERR(pdata->csr_base);
 
-- 
2.7.4



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

* [PATCH -next 34/34] rtc: zynqmp: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (32 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 33/34] rtc: xgene: " YueHaibing
@ 2019-10-06 10:29 ` YueHaibing
  2019-10-07 10:10 ` [PATCH -next 00/34] rtc: " Alexandre Belloni
  34 siblings, 0 replies; 41+ messages in thread
From: YueHaibing @ 2019-10-06 10:29 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/rtc/rtc-zynqmp.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/rtc/rtc-zynqmp.c b/drivers/rtc/rtc-zynqmp.c
index 2c76275..55646e0 100644
--- a/drivers/rtc/rtc-zynqmp.c
+++ b/drivers/rtc/rtc-zynqmp.c
@@ -195,7 +195,6 @@ static irqreturn_t xlnx_rtc_interrupt(int irq, void *id)
 static int xlnx_rtc_probe(struct platform_device *pdev)
 {
 	struct xlnx_rtc_dev *xrtcdev;
-	struct resource *res;
 	int ret;
 
 	xrtcdev = devm_kzalloc(&pdev->dev, sizeof(*xrtcdev), GFP_KERNEL);
@@ -211,9 +210,7 @@ static int xlnx_rtc_probe(struct platform_device *pdev)
 	xrtcdev->rtc->ops = &xlnx_rtc_ops;
 	xrtcdev->rtc->range_max = U32_MAX;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
-	xrtcdev->reg_base = devm_ioremap_resource(&pdev->dev, res);
+	xrtcdev->reg_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(xrtcdev->reg_base))
 		return PTR_ERR(xrtcdev->reg_base);
 
-- 
2.7.4



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

* Re: [PATCH -next 29/34] rtc: sunxi: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 ` [PATCH -next 29/34] rtc: sunxi: " YueHaibing
@ 2019-10-07  8:11   ` Chen-Yu Tsai
  0 siblings, 0 replies; 41+ messages in thread
From: Chen-Yu Tsai @ 2019-10-07  8:11 UTC (permalink / raw)
  To: YueHaibing
  Cc: Alessandro Zummo, Alexandre Belloni, joel, andrew, Nicolas Ferre,
	ludovic.desroches, Brian Norris, gregory.0xf0, Florian Fainelli,
	open list:BROADCOM BCM281XX...,
	Linus Walleij, Baruch Siach, paul, Vladimir Zapolskiy,
	Sylvain Lemieux, Kevin Hilman, eddie.huang, Sean Wang,
	Matthias Brugger, Patrice Chotard, Maxime Coquelin,
	Alexandre Torgue, Maxime Ripard, Thierry Reding, jonathanh,
	Tony Prisk, Michal Simek, linux-rtc, linux-kernel,
	linux-arm-kernel, linux-aspeed, open list:ARM/Amlogic Meson...,
	moderated list:ARM/Mediatek SoC...,
	linux-stm32, linux-tegra

On Sun, Oct 6, 2019 at 6:39 PM YueHaibing <yuehaibing@huawei.com> wrote:
>
> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Acked-by: Chen-Yu Tsai <wens@csie.org>

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

* Re: [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (33 preceding siblings ...)
  2019-10-06 10:29 ` [PATCH -next 34/34] rtc: zynqmp: " YueHaibing
@ 2019-10-07 10:10 ` Alexandre Belloni
  34 siblings, 0 replies; 41+ messages in thread
From: Alexandre Belloni @ 2019-10-07 10:10 UTC (permalink / raw)
  To: YueHaibing
  Cc: a.zummo, joel, andrew, nicolas.ferre, ludovic.desroches,
	computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek, linux-rtc,
	linux-kernel, linux-arm-kernel, linux-aspeed, linux-amlogic,
	linux-mediatek, linux-stm32, linux-tegra

On 06/10/2019 18:29:19+0800, YueHaibing wrote:
> devm_platform_ioremap_resource() internally have platform_get_resource()
> and devm_ioremap_resource() in it. So instead of calling them separately
> use devm_platform_ioremap_resource() directly.
> 
> YueHaibing (34):
>   rtc: asm9260: use devm_platform_ioremap_resource() to simplify code
>   rtc: rtc-aspeed: use devm_platform_ioremap_resource() to simplify code
>   rtc: brcmstb-waketimer: use devm_platform_ioremap_resource() to
>     simplify code
>   rtc: at91sam9: use devm_platform_ioremap_resource() to simplify code
>   rtc: cadence: use devm_platform_ioremap_resource() to simplify code
>   rtc: coh901331: use devm_platform_ioremap_resource() to simplify code
>   rtc: davinci: use devm_platform_ioremap_resource() to simplify code
>   rtc: digicolor: use devm_platform_ioremap_resource() to simplify code
>   rtc: ds1216: use devm_platform_ioremap_resource() to simplify code
>   rtc: ds1511: use devm_platform_ioremap_resource() to simplify code
>   rtc: ds1553: use devm_platform_ioremap_resource() to simplify code
>   rtc: ep93xx: use devm_platform_ioremap_resource() to simplify code
>   rtc: jz4740: use devm_platform_ioremap_resource() to simplify code
>   rtc: lpc24xx: use devm_platform_ioremap_resource() to simplify code
>   rtc: lpc32xx: use devm_platform_ioremap_resource() to simplify code
>   rtc: meson: use devm_platform_ioremap_resource() to simplify code
>   rtc: mt7622: use devm_platform_ioremap_resource() to simplify code
>   rtc: mv: use devm_platform_ioremap_resource() to simplify code
>   rtc: omap: use devm_platform_ioremap_resource() to simplify code
>   rtc: pic32: use devm_platform_ioremap_resource() to simplify code
>   rtc: rtd119x: use devm_platform_ioremap_resource() to simplify code
>   rtc: s3c: use devm_platform_ioremap_resource() to simplify code
>   rtc: sa1100: use devm_platform_ioremap_resource() to simplify code
>   rtc: spear: use devm_platform_ioremap_resource() to simplify code
>   rtc: stk17ta8: use devm_platform_ioremap_resource() to simplify code
>   rtc: ds1286: use devm_platform_ioremap_resource() to simplify code
>   rtc: st-lpc: use devm_platform_ioremap_resource() to simplify code
>   rtc: stm32: use devm_platform_ioremap_resource() to simplify code
>   rtc: sunxi: use devm_platform_ioremap_resource() to simplify code
>   rtc: tegra: use devm_platform_ioremap_resource() to simplify code
>   rtc: tx4939: use devm_platform_ioremap_resource() to simplify code
>   rtc: vt8500: use devm_platform_ioremap_resource() to simplify code
>   rtc: xgene: use devm_platform_ioremap_resource() to simplify code
>   rtc: zynqmp: use devm_platform_ioremap_resource() to simplify code
> 
>  drivers/rtc/rtc-asm9260.c           | 4 +---
>  drivers/rtc/rtc-aspeed.c            | 4 +---
>  drivers/rtc/rtc-at91sam9.c          | 4 +---
>  drivers/rtc/rtc-brcmstb-waketimer.c | 4 +---
>  drivers/rtc/rtc-cadence.c           | 4 +---
>  drivers/rtc/rtc-coh901331.c         | 4 +---
>  drivers/rtc/rtc-davinci.c           | 4 +---
>  drivers/rtc/rtc-digicolor.c         | 4 +---
>  drivers/rtc/rtc-ds1216.c            | 4 +---
>  drivers/rtc/rtc-ds1286.c            | 4 +---
>  drivers/rtc/rtc-ds1511.c            | 4 +---
>  drivers/rtc/rtc-ds1553.c            | 4 +---
>  drivers/rtc/rtc-ep93xx.c            | 4 +---
>  drivers/rtc/rtc-jz4740.c            | 4 +---
>  drivers/rtc/rtc-lpc24xx.c           | 4 +---
>  drivers/rtc/rtc-lpc32xx.c           | 4 +---
>  drivers/rtc/rtc-meson.c             | 4 +---
>  drivers/rtc/rtc-mt7622.c            | 4 +---
>  drivers/rtc/rtc-mv.c                | 4 +---
>  drivers/rtc/rtc-omap.c              | 4 +---
>  drivers/rtc/rtc-pic32.c             | 4 +---
>  drivers/rtc/rtc-rtd119x.c           | 4 +---
>  drivers/rtc/rtc-s3c.c               | 4 +---
>  drivers/rtc/rtc-sa1100.c            | 4 +---
>  drivers/rtc/rtc-spear.c             | 4 +---
>  drivers/rtc/rtc-st-lpc.c            | 4 +---
>  drivers/rtc/rtc-stk17ta8.c          | 4 +---
>  drivers/rtc/rtc-stm32.c             | 4 +---
>  drivers/rtc/rtc-sunxi.c             | 4 +---
>  drivers/rtc/rtc-tegra.c             | 4 +---
>  drivers/rtc/rtc-tx4939.c            | 4 +---
>  drivers/rtc/rtc-vt8500.c            | 4 +---
>  drivers/rtc/rtc-xgene.c             | 4 +---
>  drivers/rtc/rtc-zynqmp.c            | 5 +----
>  34 files changed, 34 insertions(+), 103 deletions(-)
> 

I've quashed and applied.

> -- 
> 2.7.4
> 
> 

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* Re: [PATCH -next 16/34] rtc: meson: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 ` [PATCH -next 16/34] rtc: meson: " YueHaibing
@ 2019-10-07 18:09   ` Kevin Hilman
  2019-10-07 20:01   ` Martin Blumenstingl
  1 sibling, 0 replies; 41+ messages in thread
From: Kevin Hilman @ 2019-10-07 18:09 UTC (permalink / raw)
  To: YueHaibing, a.zummo, alexandre.belloni, joel, andrew,
	nicolas.ferre, ludovic.desroches, computersforpeace,
	gregory.0xf0, f.fainelli, bcm-kernel-feedback-list,
	linus.walleij, baruch, paul, vz, slemieux.tyco, eddie.huang,
	sean.wang, matthias.bgg, patrice.chotard, mcoquelin.stm32,
	alexandre.torgue, mripard, wens, thierry.reding, jonathanh,
	linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra,
	YueHaibing

YueHaibing <yuehaibing@huawei.com> writes:

> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Reviewed-by: Kevin Hilman <khilman@baylibre.com>

> ---
>  drivers/rtc/rtc-meson.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c
> index e08b981..9bd8478 100644
> --- a/drivers/rtc/rtc-meson.c
> +++ b/drivers/rtc/rtc-meson.c
> @@ -292,7 +292,6 @@ static int meson_rtc_probe(struct platform_device *pdev)
>  	};
>  	struct device *dev = &pdev->dev;
>  	struct meson_rtc *rtc;
> -	struct resource *res;
>  	void __iomem *base;
>  	int ret;
>  	u32 tm;
> @@ -312,8 +311,7 @@ static int meson_rtc_probe(struct platform_device *pdev)
>  	rtc->rtc->ops = &meson_rtc_ops;
>  	rtc->rtc->range_max = U32_MAX;
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	base = devm_ioremap_resource(dev, res);
> +	base = devm_platform_ioremap_resource(pdev, 0);
>  	if (IS_ERR(base))
>  		return PTR_ERR(base);
>  
> -- 
> 2.7.4

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

* Re: [PATCH -next 03/34] rtc: brcmstb-waketimer: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 ` [PATCH -next 03/34] rtc: brcmstb-waketimer: " YueHaibing
@ 2019-10-07 18:15   ` Florian Fainelli
  0 siblings, 0 replies; 41+ messages in thread
From: Florian Fainelli @ 2019-10-07 18:15 UTC (permalink / raw)
  To: YueHaibing, a.zummo, alexandre.belloni, joel, andrew,
	nicolas.ferre, ludovic.desroches, computersforpeace,
	gregory.0xf0, bcm-kernel-feedback-list, linus.walleij, baruch,
	paul, vz, slemieux.tyco, khilman, eddie.huang, sean.wang,
	matthias.bgg, patrice.chotard, mcoquelin.stm32, alexandre.torgue,
	mripard, wens, thierry.reding, jonathanh, linux, michal.simek
  Cc: linux-rtc, linux-kernel, linux-arm-kernel, linux-aspeed,
	linux-amlogic, linux-mediatek, linux-stm32, linux-tegra

On 10/6/19 3:29 AM, YueHaibing wrote:
> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

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

* Re: [PATCH -next 16/34] rtc: meson: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 ` [PATCH -next 16/34] rtc: meson: " YueHaibing
  2019-10-07 18:09   ` Kevin Hilman
@ 2019-10-07 20:01   ` Martin Blumenstingl
  1 sibling, 0 replies; 41+ messages in thread
From: Martin Blumenstingl @ 2019-10-07 20:01 UTC (permalink / raw)
  To: YueHaibing
  Cc: a.zummo, alexandre.belloni, joel, andrew, nicolas.ferre,
	ludovic.desroches, computersforpeace, gregory.0xf0, f.fainelli,
	bcm-kernel-feedback-list, linus.walleij, baruch, paul, vz,
	slemieux.tyco, khilman, eddie.huang, sean.wang, matthias.bgg,
	patrice.chotard, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, linux, michal.simek, linux-rtc,
	linux-aspeed, linux-kernel, linux-mediatek, linux-tegra,
	linux-amlogic, linux-stm32, linux-arm-kernel

On Sun, Oct 6, 2019 at 12:38 PM YueHaibing <yuehaibing@huawei.com> wrote:
>
> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

thank you for taking care of this!


Martin

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

* Re: [PATCH -next 06/34] rtc: coh901331: use devm_platform_ioremap_resource() to simplify code
  2019-10-06 10:29 ` [PATCH -next 06/34] rtc: coh901331: " YueHaibing
@ 2019-10-09  7:46   ` Linus Walleij
  0 siblings, 0 replies; 41+ messages in thread
From: Linus Walleij @ 2019-10-09  7:46 UTC (permalink / raw)
  To: YueHaibing
  Cc: Alessandro Zummo, Alexandre Belloni, Joel Stanley,
	Andrew Jeffery, Nicolas Ferre, Ludovic Desroches, Brian Norris,
	Gregory Fong, Florian Fainelli, bcm-kernel-feedback-list,
	Baruch Siach, Paul Cercueil, Vladimir Zapolskiy, Sylvain Lemieux,
	Kevin Hilman, huang eddie, Sean Wang, Matthias Brugger,
	Patrice CHOTARD, Maxime Coquelin, Alexandre TORGUE,
	Maxime Ripard, Chen-Yu Tsai, thierry.reding, Jon Hunter,
	Tony Prisk, Michal Simek, linux-rtc, linux-kernel, Linux ARM,
	linux-aspeed, open list:ARM/Amlogic Meson...,
	moderated list:ARM/Mediatek SoC support, linux-stm32,
	linux-tegra

On Sun, Oct 6, 2019 at 12:32 PM YueHaibing <yuehaibing@huawei.com> wrote:

> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

end of thread, other threads:[~2019-10-09  7:46 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-06 10:29 [PATCH -next 00/34] rtc: use devm_platform_ioremap_resource() to simplify code YueHaibing
2019-10-06 10:29 ` [PATCH -next 01/34] rtc: asm9260: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 02/34] rtc: rtc-aspeed: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 03/34] rtc: brcmstb-waketimer: " YueHaibing
2019-10-07 18:15   ` Florian Fainelli
2019-10-06 10:29 ` [PATCH -next 04/34] rtc: at91sam9: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 05/34] rtc: cadence: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 06/34] rtc: coh901331: " YueHaibing
2019-10-09  7:46   ` Linus Walleij
2019-10-06 10:29 ` [PATCH -next 07/34] rtc: davinci: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 08/34] rtc: digicolor: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 09/34] rtc: ds1216: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 10/34] rtc: ds1511: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 11/34] rtc: ds1553: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 12/34] rtc: ep93xx: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 13/34] rtc: jz4740: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 14/34] rtc: lpc24xx: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 15/34] rtc: lpc32xx: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 16/34] rtc: meson: " YueHaibing
2019-10-07 18:09   ` Kevin Hilman
2019-10-07 20:01   ` Martin Blumenstingl
2019-10-06 10:29 ` [PATCH -next 17/34] rtc: mt7622: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 18/34] rtc: mv: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 19/34] rtc: omap: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 20/34] rtc: pic32: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 21/34] rtc: rtd119x: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 22/34] rtc: s3c: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 23/34] rtc: sa1100: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 24/34] rtc: spear: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 25/34] rtc: stk17ta8: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 26/34] rtc: ds1286: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 27/34] rtc: st-lpc: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 28/34] rtc: stm32: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 29/34] rtc: sunxi: " YueHaibing
2019-10-07  8:11   ` Chen-Yu Tsai
2019-10-06 10:29 ` [PATCH -next 30/34] rtc: tegra: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 31/34] rtc: tx4939: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 32/34] rtc: vt8500: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 33/34] rtc: xgene: " YueHaibing
2019-10-06 10:29 ` [PATCH -next 34/34] rtc: zynqmp: " YueHaibing
2019-10-07 10:10 ` [PATCH -next 00/34] rtc: " Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).