All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] media: atmel-isi: Convert to devm_platform_ioremap_resource()
@ 2023-07-06 10:10 ` Yangtao Li
  0 siblings, 0 replies; 19+ messages in thread
From: Yangtao Li @ 2023-07-06 10:10 UTC (permalink / raw)
  To: Eugen Hristev, Mauro Carvalho Chehab, Nicolas Ferre,
	Alexandre Belloni, Claudiu Beznea
  Cc: Yangtao Li, linux-media, linux-arm-kernel, linux-kernel

Use devm_platform_ioremap_resource() to simplify code.

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

diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c
index c29e04864445..086353198d2a 100644
--- a/drivers/media/platform/atmel/atmel-isi.c
+++ b/drivers/media/platform/atmel/atmel-isi.c
@@ -1187,7 +1187,6 @@ static int atmel_isi_probe(struct platform_device *pdev)
 	int irq;
 	struct atmel_isi *isi;
 	struct vb2_queue *q;
-	struct resource *regs;
 	int ret, i;
 
 	isi = devm_kzalloc(&pdev->dev, sizeof(struct atmel_isi), GFP_KERNEL);
@@ -1268,8 +1267,7 @@ static int atmel_isi_probe(struct platform_device *pdev)
 		list_add(&isi->dma_desc[i].list, &isi->dma_desc_head);
 	}
 
-	regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	isi->regs = devm_ioremap_resource(&pdev->dev, regs);
+	isi->regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(isi->regs)) {
 		ret = PTR_ERR(isi->regs);
 		goto err_ioremap;
-- 
2.39.0


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

end of thread, other threads:[~2023-07-07  8:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 10:10 [PATCH 01/11] media: atmel-isi: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-06 10:10 ` Yangtao Li
2023-07-06 10:10 ` [PATCH 02/11] media: pxa_camera: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-06 10:10 ` [PATCH 03/11] media: marvell: " Yangtao Li
2023-07-06 10:10 ` [PATCH 04/11] media: microchip-sama5d2-isc: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-06 10:10 ` [PATCH 05/11] media: fimc-lite: " Yangtao Li
2023-07-06 10:10   ` Yangtao Li
2023-07-06 10:10 ` [PATCH 06/11] media: microchip-sama7g5-isc: " Yangtao Li
2023-07-06 10:10 ` [PATCH 07/11] media: verisilicon: Convert to devm_platform_ioremap_resource() and devm_platform_ioremap_resource_byname() Yangtao Li
2023-07-06 10:10   ` Yangtao Li
2023-07-07  8:26   ` Chen-Yu Tsai
2023-07-07  8:26     ` Chen-Yu Tsai
2023-07-06 10:10 ` [PATCH 08/11] media: stm32-dcmi: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-06 10:10   ` Yangtao Li
2023-07-06 10:10 ` [PATCH 09/11] media: platform: ti: " Yangtao Li
2023-07-07  8:37   ` Laurent Pinchart
2023-07-06 10:10 ` [PATCH 10/11] media: fimc-core: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-06 10:10   ` Yangtao Li
2023-07-06 10:10 ` [PATCH 11/11] media: sh_vou: " Yangtao Li

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