serial: Add missing MODULE_DEVICE_TABLE
PATCH 1/1 serial: Add missing MODULE_DEVICE_TABLE
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 <[email protected]>
Signed-off-by Bixuan Cui <[email protected]>
--- drivers/tty/serial/tegra-tcu.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/tegra-tcu.c +1 -0
@@ -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 = {
Quoted 9 lines · Bixuan Cui
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>--- drivers/tty/serial/tegra-tcu.c | 1 + 1 file changed, 1 insertion(+)
Acked-by Thierry Reding <[email protected]>