* [PATCH v1] i2c: eg20t: Load module automatically if ID matches
@ 2020-07-02 10:15 Andy Shevchenko
2020-07-04 6:08 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2020-07-02 10:15 UTC (permalink / raw)
To: linux-i2c, Wolfram Sang; +Cc: 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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/i2c/busses/i2c-eg20t.c | 1 +
1 file changed, 1 insertion(+)
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);
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] i2c: eg20t: Load module automatically if ID matches
2020-07-02 10:15 [PATCH v1] i2c: eg20t: Load module automatically if ID matches Andy Shevchenko
@ 2020-07-04 6:08 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2020-07-04 6:08 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-i2c
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
On Thu, Jul 02, 2020 at 01:15:27PM +0300, Andy Shevchenko wrote:
> 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>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-04 6:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 10:15 [PATCH v1] i2c: eg20t: Load module automatically if ID matches Andy Shevchenko
2020-07-04 6:08 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).