Skip to content

Commit abe81f3

Browse files
Javier Martinez Canillasgregkh
authored andcommitted
tty: serial: msm: Fix module autoload
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drivers/tty/serial/msm_serial.ko | grep alias $ After this patch: $ modinfo drivers/tty/serial/msm_serial.ko | grep alias alias: of:N*T*Cqcom,msm-uartdmC* alias: of:N*T*Cqcom,msm-uartdm alias: of:N*T*Cqcom,msm-uartC* alias: of:N*T*Cqcom,msm-uart Signed-off-by: Javier Martinez Canillas <[email protected]> Acked-by: Bjorn Andersson <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9c4b60f commit abe81f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/msm_serial.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ static const struct of_device_id msm_match_table[] = {
18091809
{ .compatible = "qcom,msm-uartdm" },
18101810
{}
18111811
};
1812+
MODULE_DEVICE_TABLE(of, msm_match_table);
18121813

18131814
static struct platform_driver msm_platform_driver = {
18141815
.remove = msm_serial_remove,

0 commit comments

Comments
 (0)