diff mbox series

[v3,1/2] dmaengine: dw: dmamux: Export the module device table

Message ID 20220609141455.300879-1-miquel.raynal@bootlin.com (mailing list archive)
State Accepted
Commit 2717d33841957a0f5fb65fd8b37f9c2321593864
Headers show
Series [v3,1/2] dmaengine: dw: dmamux: Export the module device table | expand

Commit Message

Miquel Raynal June 9, 2022, 2:14 p.m. UTC
This is a tristate driver that can be built as a module, as a result,
the OF match table should be exported with MODULE_DEVICE_TABLE().

Fixes: 134d9c52fca2 ("dmaengine: dw: dmamux: Introduce RZN1 DMA router support")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---

Changes in v3:
* Added a Fixes tag.

Changes in v2:
* New patch.

 drivers/dma/dw/rzn1-dmamux.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andy Shevchenko June 9, 2022, 3:58 p.m. UTC | #1
On Thu, Jun 09, 2022 at 04:14:54PM +0200, Miquel Raynal wrote:
> This is a tristate driver that can be built as a module, as a result,
> the OF match table should be exported with MODULE_DEVICE_TABLE().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

> Fixes: 134d9c52fca2 ("dmaengine: dw: dmamux: Introduce RZN1 DMA router support")
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> 
> Changes in v3:
> * Added a Fixes tag.
> 
> Changes in v2:
> * New patch.
> 
>  drivers/dma/dw/rzn1-dmamux.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/dma/dw/rzn1-dmamux.c b/drivers/dma/dw/rzn1-dmamux.c
> index 11d254e450b0..0ce4fb58185e 100644
> --- a/drivers/dma/dw/rzn1-dmamux.c
> +++ b/drivers/dma/dw/rzn1-dmamux.c
> @@ -140,6 +140,7 @@ static const struct of_device_id rzn1_dmamux_match[] = {
>  	{ .compatible = "renesas,rzn1-dmamux" },
>  	{}
>  };
> +MODULE_DEVICE_TABLE(of, rzn1_dmamux_match);
>  
>  static struct platform_driver rzn1_dmamux_driver = {
>  	.driver = {
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/dma/dw/rzn1-dmamux.c b/drivers/dma/dw/rzn1-dmamux.c
index 11d254e450b0..0ce4fb58185e 100644
--- a/drivers/dma/dw/rzn1-dmamux.c
+++ b/drivers/dma/dw/rzn1-dmamux.c
@@ -140,6 +140,7 @@  static const struct of_device_id rzn1_dmamux_match[] = {
 	{ .compatible = "renesas,rzn1-dmamux" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, rzn1_dmamux_match);
 
 static struct platform_driver rzn1_dmamux_driver = {
 	.driver = {