From: Liao Chen <liaochen4@huawei.com>
To: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <sakari.ailus@linux.intel.com>, <jacopo@jmondi.org>,
<mchehab@kernel.org>, <laurent.pinchart@ideasonboard.com>,
<biju.das.jz@bp.renesas.com>
Subject: [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading
Date: Thu, 29 Aug 2024 12:52:02 +0000 [thread overview]
Message-ID: <20240829125203.539977-2-liaochen4@huawei.com> (raw)
In-Reply-To: <20240829125203.539977-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/i2c/mt9v111.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
index b0b98ed3c150..b6a2623798c5 100644
--- a/drivers/media/i2c/mt9v111.c
+++ b/drivers/media/i2c/mt9v111.c
@@ -1265,6 +1265,7 @@ static const struct of_device_id mt9v111_of_match[] = {
{ .compatible = "aptina,mt9v111", },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, mt9v111_of_match);
static struct i2c_driver mt9v111_driver = {
.driver = {
--
2.34.1
next prev parent reply other threads:[~2024-08-29 13:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 12:52 [PATCH -next 0/2] media: i2c: mt9v111: workaround Liao Chen
2024-08-29 12:52 ` Liao Chen [this message]
2024-08-29 13:47 ` [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading Laurent Pinchart
2024-09-03 11:47 ` Sakari Ailus
2024-08-29 12:52 ` [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma Liao Chen
2024-08-29 13:05 ` Biju Das
2024-08-29 13:46 ` Laurent Pinchart
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=20240829125203.539977-2-liaochen4@huawei.com \
--to=liaochen4@huawei.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=jacopo@jmondi.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.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