Files
linux/drivers
Javier Martinez Canillas 259f317db7 iio: adc: imx25-gcq: Fix module autoload
[ Upstream commit 8f0d7daf53 ]

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/iio/adc/fsl-imx25-gcq.ko | grep alias
$

After this patch:

$ modinfo drivers/iio/adc/fsl-imx25-gcq.ko | grep alias
alias:          of:N*T*Cfsl,imx25-gcqC*
alias:          of:N*T*Cfsl,imx25-gcq

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-08 10:26:04 +02:00
..
2016-12-05 14:53:46 -05:00
2017-10-05 09:44:00 +02:00
2017-08-06 18:59:49 -07:00
2017-08-06 18:59:42 -07:00
2017-09-09 17:39:41 +02:00
2017-10-05 09:44:04 +02:00
2017-04-21 09:31:24 +02:00