From: Andy Shevchenko Date: Thu, 2 Jul 2020 10:15:27 +0000 (+0300) Subject: i2c: eg20t: Load module automatically if ID matches X-Git-Tag: Ubuntu-5.13.0-19.19~5619^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5f90786b31fb7d1e199a8999d46c4e3aea672e11;p=mirror_ubuntu-jammy-kernel.git 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c index bb810dee8fb5..73f139690e4e 100644 --- a/drivers/i2c/busses/i2c-eg20t.c +++ b/drivers/i2c/busses/i2c-eg20t.c @@ -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);