summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-07-02 13:15:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-22 09:32:01 +0200
commit206c9c97c212b3a815998ed47c0fc8167cc16e6e (patch)
tree44740eee4834f4bfcda227b2cc04e6a4f57da873 /drivers/i2c/busses
parentf8bc4ff1c44954178eba375d1b1eaa3cf6912536 (diff)
downloadlinux-stable-206c9c97c212b3a815998ed47c0fc8167cc16e6e.tar.gz
linux-stable-206c9c97c212b3a815998ed47c0fc8167cc16e6e.tar.bz2
linux-stable-206c9c97c212b3a815998ed47c0fc8167cc16e6e.zip
i2c: eg20t: Load module automatically if ID matches
[ Upstream commit 5f90786b31fb7d1e199a8999d46c4e3aea672e11 ] 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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/i2c-eg20t.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c
index 231675b10376..44025507b8f7 100644
--- a/drivers/i2c/busses/i2c-eg20t.c
+++ b/drivers/i2c/busses/i2c-eg20t.c
@@ -188,6 +188,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);