]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: hmc5843: Export missing SPI module alias information
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 20 Aug 2015 07:07:15 +0000 (09:07 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 22 Aug 2015 17:51:18 +0000 (18:51 +0100)
commit45ef12b6ad6ade7bb8c89db3d3101e99d9552f3a
tree24706dad192c491f2552bffecd28d6eb533aa340
parenta6d748e3ad927f6f2b93c9747d78da72c83141b6
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>
drivers/staging/iio/magnetometer/hmc5843_spi.c