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 <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 63d14d9 commit a799585

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)