diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-07-30 18:18:28 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-02 16:35:01 +0100 |
commit | 58e446fcc69436988fdab4a81981f44193f064f7 (patch) | |
tree | 4641e0d6209b7fbcb00a453425a68f89a6faea0e /drivers/iio/light/stk3310.c | |
parent | 7868dfd216074fc5f902e7befacda2a0ec76e403 (diff) | |
download | talos-obmc-linux-58e446fcc69436988fdab4a81981f44193f064f7.tar.gz talos-obmc-linux-58e446fcc69436988fdab4a81981f44193f064f7.zip |
iio: Export I2C module alias information in missing drivers
The I2C core always reports the MODALIAS uevent as "i2c:<client name"
regardless if the driver was matched using the I2C id_table or the
of_match_table. So the driver needs to export the I2C table and this
be built into the module or udev won't have the necessary information
to auto load the correct 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/iio/light/stk3310.c')
-rw-r--r-- | drivers/iio/light/stk3310.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index fee4297d7c8f..d26b931730ee 100644 --- a/drivers/iio/light/stk3310.c +++ b/drivers/iio/light/stk3310.c @@ -695,6 +695,7 @@ static const struct i2c_device_id stk3310_i2c_id[] = { {"STK3311", 0}, {} }; +MODULE_DEVICE_TABLE(i2c, stk3310_i2c_id); static const struct acpi_device_id stk3310_acpi_id[] = { {"STK3310", 0}, |