All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] serial: Add missing MODULE_DEVICE_TABLE
@ 2021-04-10  3:50 Bixuan Cui
  2021-06-01 17:03 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Bixuan Cui @ 2021-04-10  3:50 UTC (permalink / raw
  To: cuibixuan, Greg Kroah-Hartman, Jiri Slaby, Thierry Reding,
	Jonathan Hunter
  Cc: linux-serial, linux-tegra, kernel-janitors

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
 drivers/tty/serial/tegra-tcu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/tegra-tcu.c b/drivers/tty/serial/tegra-tcu.c
index aaf8748a6147..52687c65ad74 100644
--- a/drivers/tty/serial/tegra-tcu.c
+++ b/drivers/tty/serial/tegra-tcu.c
@@ -282,6 +282,7 @@ static const struct of_device_id tegra_tcu_match[] = {
 	{ .compatible = "nvidia,tegra194-tcu" },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, tegra_tcu_match);
 
 static struct platform_driver tegra_tcu_driver = {
 	.driver = {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] serial: Add missing MODULE_DEVICE_TABLE
  2021-04-10  3:50 [PATCH -next] serial: Add missing MODULE_DEVICE_TABLE Bixuan Cui
@ 2021-06-01 17:03 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2021-06-01 17:03 UTC (permalink / raw
  To: Bixuan Cui
  Cc: Greg Kroah-Hartman, Jiri Slaby, Jonathan Hunter, linux-serial,
	linux-tegra, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

On Sat, Apr 10, 2021 at 11:50:48AM +0800, Bixuan Cui wrote:
> This patch adds missing MODULE_DEVICE_TABLE definition which generates
> correct modalias for automatic loading of this driver when it is built
> as an external module.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
> ---
>  drivers/tty/serial/tegra-tcu.c | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-01 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-10  3:50 [PATCH -next] serial: Add missing MODULE_DEVICE_TABLE Bixuan Cui
2021-06-01 17:03 ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.