Files
linux/drivers
Javier Martinez Canillas 469e75ddff scsi: ufs-qcom: Fix module autoload
[ Upstream commit ab3dabb3e8 ]

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/scsi/ufs/ufs-qcom.ko | grep alias
$

After this patch:

$ modinfo drivers/scsi/ufs/ufs-qcom.ko | grep alias
alias:          of:N*T*Cqcom,ufshcC*
alias:          of:N*T*Cqcom,ufshc

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-21 09:21:19 +01:00
..
2017-11-21 09:21:19 +01:00
2015-10-12 19:56:27 -07:00
2017-10-18 09:20:41 +02:00
2017-10-12 11:27:33 +02:00
2017-11-08 10:06:29 +01:00
2016-09-24 10:07:35 +02:00
2017-10-21 17:09:05 +02:00
2017-04-21 09:30:07 +02:00
2017-11-21 09:21:19 +01:00