tty: serial: of_serial: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 18 Sep 2015 18:03:43 +0000 (20:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:09:21 +0000 (19:09 +0100)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c

index 10d8c9313e8ae6260293ba2b96a2971f7f925bf3..e08df9775983a053b9c7f58eb17c6910a391d166 100644 (file)
@@ -354,6 +354,7 @@ static const struct of_device_id of_platform_serial_table[] = {
 #endif
        { /* end of list */ },
 };
+MODULE_DEVICE_TABLE(of, of_platform_serial_table);
 
 static struct platform_driver of_platform_serial_driver = {
        .driver = {