Skip to content

Commit 5f90786

Browse files
andy-shevwsakernel
authored andcommitted
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. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent db2a8b6 commit 5f90786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-eg20t.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ static const struct pci_device_id pch_pcidev_id[] = {
180180
{ PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7831_I2C), 1, },
181181
{0,}
182182
};
183+
MODULE_DEVICE_TABLE(pci, pch_pcidev_id);
183184

184185
static irqreturn_t pch_i2c_handler(int irq, void *pData);
185186

0 commit comments

Comments
 (0)