From: Sasha Levin Date: Fri, 17 Jul 2020 12:56:01 +0000 (-0400) Subject: Fixes for 4.4 X-Git-Tag: v4.4.231~78 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=33fb473ba2d6225631f4b4f525ca24a20d83801f;p=thirdparty%2Fkernel%2Fstable-queue.git Fixes for 4.4 Signed-off-by: Sasha Levin --- diff --git a/queue-4.4/i2c-eg20t-load-module-automatically-if-id-matches.patch b/queue-4.4/i2c-eg20t-load-module-automatically-if-id-matches.patch new file mode 100644 index 00000000000..178777aae43 --- /dev/null +++ b/queue-4.4/i2c-eg20t-load-module-automatically-if-id-matches.patch @@ -0,0 +1,35 @@ +From 923665fa641ab99f0a28ef298b6d51487e22d114 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Thu, 2 Jul 2020 13:15:27 +0300 +Subject: i2c: eg20t: Load module automatically if ID matches + +From: Andy Shevchenko + +[ 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 +Signed-off-by: Wolfram Sang +Signed-off-by: Sasha Levin +--- + 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 eef3aa6007f10..ffd8f9772096c 100644 +--- a/drivers/i2c/busses/i2c-eg20t.c ++++ b/drivers/i2c/busses/i2c-eg20t.c +@@ -189,6 +189,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.25.1 + diff --git a/queue-4.4/series b/queue-4.4/series index 4efbf4cc4e8..b0e4110dfb9 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -26,3 +26,4 @@ tcp-make-sure-listeners-don-t-initialize-congestion-control-state.patch tcp-md5-add-missing-memory-barriers-in-tcp_md5_do_add-tcp_md5_hash_key.patch tcp-md5-refine-tcp_md5_do_add-tcp_md5_hash_key-barriers.patch tcp-md5-allow-changing-md5-keys-in-all-socket-states.patch +i2c-eg20t-load-module-automatically-if-id-matches.patch