Skip to content

Commit ed199a1

Browse files
Javier Martinez Canillasjic23
authored andcommitted
iio: Export SPI module alias information in missing drivers
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> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 1c00dcd commit ed199a1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/iio/amplifiers/ad8366.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ static const struct spi_device_id ad8366_id[] = {
195195
{"ad8366", 0},
196196
{}
197197
};
198+
MODULE_DEVICE_TABLE(spi, ad8366_id);
198199

199200
static struct spi_driver ad8366_driver = {
200201
.driver = {

‎drivers/iio/frequency/adf4350.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ static const struct spi_device_id adf4350_id[] = {
628628
{"adf4351", 4351},
629629
{}
630630
};
631+
MODULE_DEVICE_TABLE(spi, adf4350_id);
631632

632633
static struct spi_driver adf4350_driver = {
633634
.driver = {

0 commit comments

Comments
 (0)