dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dmaengine: at_xdmac: use module_platform_driver
@ 2021-06-25  9:00 Clément Léger
  2021-07-28  6:56 ` Vinod Koul
  0 siblings, 1 reply; 5+ messages in thread
From: Clément Léger @ 2021-06-25  9:00 UTC (permalink / raw)
  To: Ludovic Desroches, Tudor Ambarus, Vinod Koul
  Cc: Alexandre Belloni, Clément Léger, linux-arm-kernel,
	dmaengine, linux-kernel

The driver was previously probed with platform_driver_probe. This does
not allow the driver to be probed again later if probe function
returns -EPROBE_DEFER. This patch replace the use of
platform_driver_probe with module_platform_driver which allows that.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
---
 drivers/dma/at_xdmac.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
index 64a52bf4d737..109a4c0895f4 100644
--- a/drivers/dma/at_xdmac.c
+++ b/drivers/dma/at_xdmac.c
@@ -2238,11 +2238,7 @@ static struct platform_driver at_xdmac_driver = {
 	}
 };
 
-static int __init at_xdmac_init(void)
-{
-	return platform_driver_probe(&at_xdmac_driver, at_xdmac_probe);
-}
-subsys_initcall(at_xdmac_init);
+module_platform_driver(at_xdmac_driver);
 
 MODULE_DESCRIPTION("Atmel Extended DMA Controller driver");
 MODULE_AUTHOR("Ludovic Desroches <ludovic.desroches@atmel.com>");
-- 
2.32.0


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

end of thread, other threads:[~2021-07-28  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25  9:00 [PATCH] dmaengine: at_xdmac: use module_platform_driver Clément Léger
2021-07-28  6:56 ` Vinod Koul
2021-07-28  7:38   ` Clément Léger
2021-07-28  8:23     ` Vinod Koul
2021-07-28  8:37       ` Clément Léger

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).