Skip to content

Commit ed8d1cf

Browse files
Javier Martinez Canillasmchehab
authored andcommitted
[media] 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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 7612cf9 commit ed8d1cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/media/i2c/ir-kbd-i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ static const struct i2c_device_id ir_kbd_id[] = {
478478
{ "ir_rx_z8f0811_hdpvr", 0 },
479479
{ }
480480
};
481+
MODULE_DEVICE_TABLE(i2c, ir_kbd_id);
481482

482483
static struct i2c_driver ir_kbd_driver = {
483484
.driver = {

drivers/media/i2c/s5k6a3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ static int s5k6a3_remove(struct i2c_client *client)
363363
static const struct i2c_device_id s5k6a3_ids[] = {
364364
{ }
365365
};
366+
MODULE_DEVICE_TABLE(i2c, s5k6a3_ids);
366367

367368
#ifdef CONFIG_OF
368369
static const struct of_device_id s5k6a3_of_match[] = {

0 commit comments

Comments
 (0)