Skip to contentSkip to conversation

i2c: eg20t: Load module automatically if ID matches

PATCH Applied Andy Shevchenko 2 participants 2 messages Jul 2, 2020 – Jul 4, 2020 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: eg20t: Load module automatically if ID matches

The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver.

---
 drivers/i2c/busses/i2c-eg20t.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-eg20t.c +1 -0
index bb810dee8fb5..73f139690e4e 100644
@@ -180,6 +180,7 @@ static const struct pci_device_id pch_pcidev_id[] = {
 	{ PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7831_I2C), 1, },
 	{0,}
 };
+MODULE_DEVICE_TABLE(pci, pch_pcidev_id);
 
 static irqreturn_t pch_i2c_handler(int irq, void *pData);
 
Signature · 1 line
2.27.0
Applied
#1 lore raw
Quoted 5 lines · Andy Shevchenko

The driver can't be loaded automatically because it misses module alias to be provided. Add corresponding MODULE_DEVICE_TABLE() call to the driver.

Applied to for-current, thanks!