aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-08-20 09:07:15 +0200
committerJonathan Cameron <jic23@kernel.org>2015-08-22 18:51:18 +0100
commit45ef12b6ad6ade7bb8c89db3d3101e99d9552f3a (patch)
tree24706dad192c491f2552bffecd28d6eb533aa340 /drivers/staging/iio
parentStaging: iio: trigger: Use braces on both branches of if statement (diff)
downloadlinux-dev-45ef12b6ad6ade7bb8c89db3d3101e99d9552f3a.tar.xz
linux-dev-45ef12b6ad6ade7bb8c89db3d3101e99d9552f3a.zip
staging: iio: hmc5843: Export missing SPI module alias information
The SPI core always reports the MODALIAS uevent as "spi:<modalias>" regardless of the mechanism that was used to register the device (i.e: OF or board code) and the table that is used later to match the driver with the device (i.e: SPI id table or OF match table). So drivers needs to export the SPI id table and this be built into the module or udev won't have the necessary information to autoload the needed driver module when the device is added. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r--drivers/staging/iio/magnetometer/hmc5843_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/magnetometer/hmc5843_spi.c b/drivers/staging/iio/magnetometer/hmc5843_spi.c
index 8a80d0187ca6..1549192c0dec 100644
--- a/drivers/staging/iio/magnetometer/hmc5843_spi.c
+++ b/drivers/staging/iio/magnetometer/hmc5843_spi.c
@@ -82,6 +82,7 @@ static const struct spi_device_id hmc5843_id[] = {
{ "hmc5983", HMC5983_ID },
{ }
};
+MODULE_DEVICE_TABLE(spi, hmc5843_id);
static struct spi_driver hmc5843_driver = {
.driver = {