Javier Martinez Canillas
04fae8abfa
tty: serial: msm: Fix module autoload
...
commit abe81f3b8e upstream.
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 <javier@osg.samsung.com >
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-02-26 11:07:50 +01:00
..
2017-01-19 20:17:22 +01:00
2016-11-10 16:36:33 +01:00
2017-02-09 08:02:45 +01:00
2015-10-12 19:56:27 -07:00
2017-02-09 08:02:47 +01:00
2016-08-10 11:49:24 +02:00
2017-01-06 11:16:14 +01:00
2016-09-15 08:27:49 +02:00
2017-01-19 20:17:22 +01:00
2017-01-06 11:16:16 +01:00
2017-01-12 11:22:49 +01:00
2017-01-26 08:23:48 +01:00
2016-01-04 21:46:45 -05:00
2017-01-19 20:17:22 +01:00
2016-10-16 17:36:15 +02:00
2017-01-06 11:16:12 +01:00
2017-01-26 08:23:50 +01:00
2015-10-30 01:16:16 -04:00
2016-09-07 08:32:41 +02:00
2016-05-04 14:48:54 -07:00
2016-11-10 16:36:35 +01:00
2016-05-04 14:48:49 -07:00
2015-11-24 15:25:46 -08:00
2016-10-28 03:01:25 -04:00
2017-02-23 17:43:09 +01:00
2017-02-09 08:02:46 +01:00
2015-10-30 16:10:40 +01:00
2016-11-10 16:36:34 +01:00
2017-01-12 11:22:48 +01:00
2016-02-25 12:01:23 -08:00
2016-08-10 11:49:30 +02:00
2017-01-19 20:17:20 +01:00
2015-11-06 17:50:42 -08:00
2016-09-15 08:27:46 +02:00
2016-11-18 10:48:35 +01:00
2017-02-01 08:30:53 +01:00
2017-02-23 17:43:09 +01:00
2017-01-12 11:22:49 +01:00
2017-01-12 11:22:49 +01:00
2017-02-01 08:30:52 +01:00
2015-11-05 13:15:12 -08:00
2016-09-24 10:07:35 +02:00
2015-10-15 20:31:59 +11:00
2015-11-04 14:03:04 +05:30
2016-06-01 12:15:53 -07:00
2017-02-23 17:43:10 +01:00
2017-02-23 17:43:09 +01:00
2016-07-27 09:47:35 -07:00
2016-10-28 03:01:35 -04:00
2015-11-12 07:06:18 -05:00
2016-11-26 09:54:53 +01:00
2017-01-12 11:22:47 +01:00
2017-02-23 17:43:10 +01:00
2017-01-26 08:23:48 +01:00
2017-02-26 11:07:49 +01:00
2016-11-18 10:48:36 +01:00
2017-02-23 17:43:10 +01:00
2016-04-20 15:41:54 +09:00
2016-09-15 08:27:51 +02:00
2016-05-11 11:21:21 +02:00
2016-11-15 07:46:39 +01:00
2015-12-12 16:07:25 +01:00
2017-02-09 08:02:44 +01:00
2016-04-20 15:42:09 +09:00
2016-10-07 15:23:41 +02:00
2016-03-03 15:07:28 -08:00
2017-02-01 08:30:54 +01:00
2017-02-01 08:30:54 +01:00
2016-08-16 09:30:48 +02:00
2016-10-31 04:14:00 -06:00
2015-12-12 02:31:11 +01:00
2016-08-10 11:49:25 +02:00
2016-12-08 07:15:24 +01:00
2017-01-09 08:07:43 +01:00
2016-08-20 18:09:20 +02:00
2017-02-26 11:07:49 +01:00
2017-02-14 15:22:52 -08:00
2017-02-23 17:43:09 +01:00
2016-03-09 15:34:49 -08:00
2016-09-24 10:07:42 +02:00
2017-01-15 13:41:36 +01:00
2015-11-04 22:15:15 -08:00
2017-01-09 08:07:42 +01:00
2017-01-12 11:22:50 +01:00
2017-02-14 15:22:51 -08:00
2017-01-09 08:07:44 +01:00
2016-06-01 12:15:53 -07:00
2017-02-26 11:07:50 +01:00
2016-10-31 04:13:59 -06:00
2017-02-09 08:02:46 +01:00
2016-11-26 09:54:53 +01:00
2016-09-07 08:32:37 +02:00
2016-09-15 08:27:53 +02:00
2017-02-01 08:30:52 +01:00
2016-11-10 16:36:34 +01:00
2017-01-19 20:17:21 +01:00
2016-08-20 18:09:22 +02:00
2016-04-12 09:08:54 -07:00
2017-01-06 11:16:17 +01:00
2015-11-04 22:15:15 -08:00
2015-11-16 15:22:28 -07:00