public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
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 3/3] media: tegra_cec: enable module autoloading
Date: Thu, 29 Aug 2024 07:54:17 +0000	[thread overview]
Message-ID: <20240829075417.526459-4-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/cec/platform/tegra/tegra_cec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/cec/platform/tegra/tegra_cec.c b/drivers/media/cec/platform/tegra/tegra_cec.c
index 7c1022cee1e8..a199a4158942 100644
--- a/drivers/media/cec/platform/tegra/tegra_cec.c
+++ b/drivers/media/cec/platform/tegra/tegra_cec.c
@@ -458,6 +458,7 @@ static const struct of_device_id tegra_cec_of_match[] = {
 	{ .compatible = "nvidia,tegra210-cec", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, tegra_cec_of_match);
 
 static struct platform_driver tegra_cec_driver = {
 	.driver = {
-- 
2.34.1


      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 ` [PATCH -next 2/3] media: platform: rzg2l-cru: rzg2l-csi2: " Liao Chen
2024-08-29  8:24   ` Biju Das
2024-08-29  7:54 ` Liao Chen [this message]

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-4-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