]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 4.9
authorSasha Levin <sashal@kernel.org>
Fri, 17 Jul 2020 12:56:01 +0000 (08:56 -0400)
committerSasha Levin <sashal@kernel.org>
Fri, 17 Jul 2020 12:56:01 +0000 (08:56 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.9/i2c-eg20t-load-module-automatically-if-id-matches.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/i2c-eg20t-load-module-automatically-if-id-matches.patch b/queue-4.9/i2c-eg20t-load-module-automatically-if-id-matches.patch
new file mode 100644 (file)
index 0000000..a1e0e51
--- /dev/null
@@ -0,0 +1,35 @@
+From 1dc636ac5847d0970187c81a086cf78533b42f78 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Thu, 2 Jul 2020 13:15:27 +0300
+Subject: i2c: eg20t: Load module automatically if ID matches
+
+From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+
+[ 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>
+---
+ 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 5ce71ce7b6c43..39f05e784566d 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
+
index 77d01b3d477657c607e984137938519de5cc3402..4527ce7647ce000188c269c571ffc03de8a591e5 100644 (file)
@@ -37,3 +37,4 @@ tcp-md5-do-not-send-silly-options-in-syncookies.patch
 tcp-md5-allow-changing-md5-keys-in-all-socket-states.patch
 cgroup-fix-cgroup_sk_alloc-for-sk_clone_lock.patch
 cgroup-fix-sock_cgroup_data-on-big-endian.patch
+i2c-eg20t-load-module-automatically-if-id-matches.patch