From: Liao Chen <liaochen4@huawei.com>
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.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
Date: Thu, 29 Aug 2024 07:54:16 +0000 [thread overview]
Message-ID: <20240829075417.526459-3-liaochen4@huawei.com> (raw)
In-Reply-To: <20240829075417.526459-1-liaochen4@huawei.com>
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
next prev parent reply other threads:[~2024-08-29 8:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 7:54 [PATCH -next 0/3] media: enable module autoloading Liao Chen
2024-08-29 7:54 ` [PATCH -next 1/3] media: v4l2-subdev: " Liao Chen
2024-08-29 8:27 ` Biju Das
2024-08-29 9:45 ` Laurent Pinchart
2024-08-29 13:03 ` liaochen (A)
2024-08-29 7:54 ` Liao Chen [this message]
2024-08-29 8:24 ` [PATCH -next 2/3] media: platform: rzg2l-cru: rzg2l-csi2: " Biju Das
2024-08-29 7:54 ` [PATCH -next 3/3] media: tegra_cec: " Liao Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240829075417.526459-3-liaochen4@huawei.com \
--to=liaochen4@huawei.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo@jmondi.org \
--cc=jonathanh@nvidia.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=thierry.reding@gmail.com \
--cc=tomi.valkeinen@ideasonboard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox