Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1210218
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 02/18] staging: iio: hmc5843: Export missing SPI module alias information |
| Date | 2015-08-20 09:20 +0200 |
| Message-ID | <pZsiJ-6gT-1@gated-at.bofh.it> (permalink) |
| References | <pZs93-65q-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/staging/iio/magnetometer/hmc5843_spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/iio/magnetometer/hmc5843_spi.c b/drivers/staging/iio/magnetometer/hmc5843_spi.c
index 8e658f736e1f..4dfb372d2fec 100644
--- a/drivers/staging/iio/magnetometer/hmc5843_spi.c
+++ b/drivers/staging/iio/magnetometer/hmc5843_spi.c
@@ -81,6 +81,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 = {
--
2.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 02/18] staging: iio: hmc5843: Export missing SPI module alias information Javier Martinez Canillas <javier@osg.samsung.com> - 2015-08-20 09:20 +0200
Re: [PATCH 02/18] staging: iio: hmc5843: Export missing SPI module alias information Jonathan Cameron <jic23@kernel.org> - 2015-08-22 20:00 +0200
Re: [PATCH 02/18] staging: iio: hmc5843: Export missing SPI module alias information Javier Martinez Canillas <javier@osg.samsung.com> - 2015-09-01 01:10 +0200
Re: [PATCH 02/18] staging: iio: hmc5843: Export missing SPI module alias information Jonathan Cameron <jic23@kernel.org> - 2015-09-05 18:40 +0200
Re: [PATCH 02/18] staging: iio: hmc5843: Export missing SPI module alias information Javier Martinez Canillas <javier@osg.samsung.com> - 2015-09-06 01:40 +0200
csiph-web