dmaengine: at_xdmac: use platform_driver_register
authorClément Léger <clement.leger@bootlin.com>
Wed, 28 Jul 2021 09:46:07 +0000 (11:46 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 28 Jul 2021 10:49:26 +0000 (16:19 +0530)
commit258cb692b82025d0e6e1cccb72baa60ff78d0ce8
treeba49121409a8d76d1922ac8bc250873a0986df20
parent059e969c2a7d9efb463c0d8c574f1b3f1e010bed
dmaengine: at_xdmac: use platform_driver_register

When using SCMI clocks, the clocks are probed later than subsys initcall
level. This driver uses platform_driver_probe which is not compatible with
deferred probing and won't be probed again later if probe function fails
due to clocks not being available at that time.

This patch replaces the use of platform_driver_probe with
platform_driver_register which will allow probing the driver later again
when clocks will be available.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Link: https://lore.kernel.org/r/20210728094607.50589-1-clement.leger@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c