diff mbox series

[-next,2/3] media: platform: rzg2l-cru: rzg2l-csi2: enable module autoloading

Message ID 20240829075417.526459-3-liaochen4@huawei.com (mailing list archive)
State New
Headers show
Series media: enable module autoloading | expand

Commit Message

Liao Chen Aug. 29, 2024, 7:54 a.m. UTC
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Biju Das Aug. 29, 2024, 8:24 a.m. UTC | #1
Hi Liao,

It is same as [1]

[1] https://git.linuxtv.org/media_stage.git/commit/?id=07668fb0f867388bfdac0b60dbf51a4ad789f8e7

Cheers,
Biju

> -----Original Message-----
> From: Liao Chen <liaochen4@huawei.com>
> Sent: Thursday, August 29, 2024 8:54 AM
> To: linux-tegra@vger.kernel.org; linux-media@vger.kernel.org; linux-kernel@vger.kernel.org
> Cc: hverkuil-cisco@xs4all.nl; mchehab@kernel.org; thierry.reding@gmail.com; jonathanh@nvidia.com;
> jacopo@jmondi.org; sakari.ailus@linux.intel.com; laurent.pinchart@ideasonboard.com; Biju Das
> <biju.das.jz@bp.renesas.com>; tomi.valkeinen@ideasonboard.com; liaochen4@huawei.com
> Subject: [PATCH -next 2/3] media: platform: rzg2l-cru: rzg2l-csi2: enable module autoloading
> 
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from
> of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
>  drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
> b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
> index e68fcdaea207..c7fdee347ac8 100644
> --- a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
> +++ b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
> @@ -865,6 +865,7 @@ static const struct of_device_id rzg2l_csi2_of_table[] = {
>  	{ .compatible = "renesas,rzg2l-csi2", },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, rzg2l_csi2_of_table);
> 
>  static struct platform_driver rzg2l_csi2_pdrv = {
>  	.remove_new = rzg2l_csi2_remove,
> --
> 2.34.1
diff mbox series

Patch

diff --git a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
index e68fcdaea207..c7fdee347ac8 100644
--- a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
+++ b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c
@@ -865,6 +865,7 @@  static const struct of_device_id rzg2l_csi2_of_table[] = {
 	{ .compatible = "renesas,rzg2l-csi2", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, rzg2l_csi2_of_table);
 
 static struct platform_driver rzg2l_csi2_pdrv = {
 	.remove_new = rzg2l_csi2_remove,