diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-07-30 19:18:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-31 20:15:21 +0300 |
commit | e80c47bd738badeaa70b1114d4cd75f892672bd3 (patch) | |
tree | c5c23d4dbf7694399daef60dc630926e9ebde135 | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) | |
download | linux-e80c47bd738badeaa70b1114d4cd75f892672bd3.tar.xz |
regulator: fan53555: Export I2C module alias information
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: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/fan53555.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 42865681c00b..4940e8287df6 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -439,6 +439,7 @@ static const struct i2c_device_id fan53555_id[] = { }, { }, }; +MODULE_DEVICE_TABLE(i2c, fan53555_id); static struct i2c_driver fan53555_regulator_driver = { .driver = { |