]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: 8250_aspeed_vuart: Enable module autoloading
authorLiao Chen <liaochen4@huawei.com>
Tue, 3 Sep 2024 13:15:03 +0000 (13:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:46:34 +0000 (15:46 +0200)
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>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240903131503.961178-1-liaochen4@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_aspeed_vuart.c

index 53d8eee9b1c81054b4e813df6c84797fc5ef5636..25c201cfb91e17fe95a432bcc4a96f0071478131 100644 (file)
@@ -561,6 +561,7 @@ static const struct of_device_id aspeed_vuart_table[] = {
        { .compatible = "aspeed,ast2500-vuart" },
        { },
 };
+MODULE_DEVICE_TABLE(of, aspeed_vuart_table);
 
 static struct platform_driver aspeed_vuart_driver = {
        .driver = {