Skip to content

Commit a799585

Browse files
Liao Chengregkh
authored andcommitted
serial: 8250_aspeed_vuart: Enable module autoloading
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>
1 parent 63d14d9 commit a799585

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/tty/serial/8250/8250_aspeed_vuart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ static const struct of_device_id aspeed_vuart_table[] = {
561561
{ .compatible = "aspeed,ast2500-vuart" },
562562
{ },
563563
};
564+
MODULE_DEVICE_TABLE(of, aspeed_vuart_table);
564565

565566
static struct platform_driver aspeed_vuart_driver = {
566567
.driver = {

0 commit comments

Comments
 (0)