projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db2a8b6
)
i2c: eg20t: Load module automatically if ID matches
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 2 Jul 2020 10:15:27 +0000
(13:15 +0300)
committer
Wolfram Sang
<wsa@kernel.org>
Sat, 4 Jul 2020 06:17:53 +0000
(08:17 +0200)
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>
drivers/i2c/busses/i2c-eg20t.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-eg20t.c
b/drivers/i2c/busses/i2c-eg20t.c
index bb810dee8fb5e42ff1e737d598d6d236839b78c9..73f139690e4e547d1db40746c0ae857c9b756e98 100644
(file)
--- 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);