From: Thierry Reding <thierry.reding@gmail.com>
To: Hans Verkuil <hans.verkuil@cisco.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Jonathan Hunter <jonathanh@nvidia.com>,
linux-media@vger.kernel.org, linux-tegra@vger.kernel.org
Subject: [PATCH 2/2] media: tegra-cec: Export OF device ID match table
Date: Mon, 10 Dec 2018 17:00:38 +0100 [thread overview]
Message-ID: <20181210160038.16122-2-thierry.reding@gmail.com> (raw)
In-Reply-To: <20181210160038.16122-1-thierry.reding@gmail.com>
From: Thierry Reding <treding@nvidia.com>
Exporting the OF device ID match table allows udev to automatically load
the module upon receiving an "ADD" uevent for the CEC controller device.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/media/platform/tegra-cec/tegra_cec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/tegra-cec/tegra_cec.c b/drivers/media/platform/tegra-cec/tegra_cec.c
index 8a1e10d008d0..4e9f91528f77 100644
--- a/drivers/media/platform/tegra-cec/tegra_cec.c
+++ b/drivers/media/platform/tegra-cec/tegra_cec.c
@@ -476,6 +476,7 @@ static const struct of_device_id tegra_cec_of_match[] = {
{ .compatible = "nvidia,tegra194-cec", },
{},
};
+MODULE_DEVICE_TABLE(of, tegra_cec_of_match);
static struct platform_driver tegra_cec_driver = {
.driver = {
--
2.19.1
next prev parent reply other threads:[~2018-12-10 16:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 16:00 [PATCH 1/2] media: tegra-cec: Support Tegra186 and Tegra194 Thierry Reding
2018-12-10 16:00 ` Thierry Reding [this message]
2018-12-10 17:07 ` Hans Verkuil
2018-12-10 20:59 ` Thierry Reding
2018-12-11 9:19 ` Hans Verkuil
2018-12-11 9:38 ` Thierry Reding
2018-12-11 9:39 ` Hans Verkuil
2018-12-11 9:40 ` Hans Verkuil
2018-12-11 10:00 ` Thierry Reding
2018-12-11 9:26 ` Hans Verkuil
2018-12-11 9:39 ` Thierry Reding
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=20181210160038.16122-2-thierry.reding@gmail.com \
--to=thierry.reding@gmail.com \
--cc=hans.verkuil@cisco.com \
--cc=jonathanh@nvidia.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mchehab@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).