OSDN Git Service

dmaengine: ti: convert k3-udma to module
authorKevin Hilman <khilman@baylibre.com>
Thu, 29 Sep 2022 23:48:19 +0000 (16:48 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Oct 2022 13:28:05 +0000 (18:58 +0530)
commit56b0a668cb35c5f04ef98ffc22b297f116fe7108
tree425cef74c2654168422346b0830b323b6c27d409
parentbeb6f6493853d862490f0d5b99910caa358dd3d4
dmaengine: ti: convert k3-udma to module

Currently k3-udma driver is built as separate platform drivers with a
shared probe and identical code path, just differnet platform data.

To enable to build as module, convert the separate platform driver
into a single module_platform_driver with the data selection done via
compatible string and of_match.  The separate of_match tables are also
combined into a single table to avoid the multiple calls to
of_match_node()

Since all modern TI platforms using this are DT enabled, the removal
of separate platform_drivers should have no functional change.

Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20220929234820.940048-3-khilman@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/Kconfig
drivers/dma/ti/k3-udma-glue.c
drivers/dma/ti/k3-udma.c