Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc: eeprom: Export I2C module alias information in missing drivers

The I2C core always reports the MODALIAS uevent as "i2c:<client name>"
regardless if the driver later is match 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>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Javier Martinez Canillas and committed by
Wolfram Sang
c49c1f08 fb427466

+1
+1
drivers/misc/eeprom/max6875.c
··· 197 197 { "max6875", 0 }, 198 198 { } 199 199 }; 200 + MODULE_DEVICE_TABLE(i2c, max6875_id); 200 201 201 202 static struct i2c_driver max6875_driver = { 202 203 .driver = {