serial: Add missing MODULE_DEVICE_TABLE
authorBixuan Cui <cuibixuan@huawei.com>
Sat, 10 Apr 2021 03:50:48 +0000 (11:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:37:27 +0000 (10:37 +0200)
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>
Link: https://lore.kernel.org/r/20210410035048.11466-1-cuibixuan@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/tegra-tcu.c

index aaf8748a614791650b9a830cc5ae2d86dd523a59..52687c65ad7455e18c0795001e3c5e945a42bda9 100644 (file)
@@ -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 = {