diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-07-30 18:18:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-31 18:15:21 +0100 |
commit | e80c47bd738badeaa70b1114d4cd75f892672bd3 (patch) | |
tree | c5c23d4dbf7694399daef60dc630926e9ebde135 /drivers/regulator/fan53555.c | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) | |
download | op-kernel-dev-e80c47bd738badeaa70b1114d4cd75f892672bd3.zip op-kernel-dev-e80c47bd738badeaa70b1114d4cd75f892672bd3.tar.gz |
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>
Diffstat (limited to 'drivers/regulator/fan53555.c')
-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 4286568..4940e82 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 = { |