]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.51/mfd-tps65912-spi-add-missing-of-table-registration.patch
Linux 4.19.51
[thirdparty/kernel/stable-queue.git] / releases / 4.19.51 / mfd-tps65912-spi-add-missing-of-table-registration.patch
CommitLineData
37554d48
SL
1From 981fb1a73013aac9fd0a8d871d5ca5933c86a7ef Mon Sep 17 00:00:00 2001
2From: Daniel Gomez <dagmcr@gmail.com>
3Date: Mon, 22 Apr 2019 21:09:50 +0200
4Subject: mfd: tps65912-spi: Add missing of table registration
5
6[ Upstream commit 9e364e87ad7f2c636276c773d718cda29d62b741 ]
7
8MODULE_DEVICE_TABLE(of, <of_match_table> should be called to complete DT
9OF mathing mechanism and register it.
10
11Before this patch:
12modinfo drivers/mfd/tps65912-spi.ko | grep alias
13alias: spi:tps65912
14
15After this patch:
16modinfo drivers/mfd/tps65912-spi.ko | grep alias
17alias: of:N*T*Cti,tps65912C*
18alias: of:N*T*Cti,tps65912
19alias: spi:tps65912
20
21Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
22Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
23Signed-off-by: Lee Jones <lee.jones@linaro.org>
24Signed-off-by: Sasha Levin <sashal@kernel.org>
25---
26 drivers/mfd/tps65912-spi.c | 1 +
27 1 file changed, 1 insertion(+)
28
29diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
30index 3bd75061f777..f78be039e463 100644
31--- a/drivers/mfd/tps65912-spi.c
32+++ b/drivers/mfd/tps65912-spi.c
33@@ -27,6 +27,7 @@ static const struct of_device_id tps65912_spi_of_match_table[] = {
34 { .compatible = "ti,tps65912", },
35 { /* sentinel */ }
36 };
37+MODULE_DEVICE_TABLE(of, tps65912_spi_of_match_table);
38
39 static int tps65912_spi_probe(struct spi_device *spi)
40 {
41--
422.20.1
43