]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.9.183/mfd-tps65912-spi-add-missing-of-table-registration.patch
Linux 4.14.129
[thirdparty/kernel/stable-queue.git] / releases / 4.9.183 / mfd-tps65912-spi-add-missing-of-table-registration.patch
1 From 9b76ac0f136920864cd1a5f8d84db075835b903a Mon Sep 17 00:00:00 2001
2 From: Daniel Gomez <dagmcr@gmail.com>
3 Date: Mon, 22 Apr 2019 21:09:50 +0200
4 Subject: mfd: tps65912-spi: Add missing of table registration
5
6 [ Upstream commit 9e364e87ad7f2c636276c773d718cda29d62b741 ]
7
8 MODULE_DEVICE_TABLE(of, <of_match_table> should be called to complete DT
9 OF mathing mechanism and register it.
10
11 Before this patch:
12 modinfo drivers/mfd/tps65912-spi.ko | grep alias
13 alias: spi:tps65912
14
15 After this patch:
16 modinfo drivers/mfd/tps65912-spi.ko | grep alias
17 alias: of:N*T*Cti,tps65912C*
18 alias: of:N*T*Cti,tps65912
19 alias: spi:tps65912
20
21 Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
22 Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
23 Signed-off-by: Lee Jones <lee.jones@linaro.org>
24 Signed-off-by: Sasha Levin <sashal@kernel.org>
25 ---
26 drivers/mfd/tps65912-spi.c | 1 +
27 1 file changed, 1 insertion(+)
28
29 diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
30 index 4aeba9b6942a..ec37cfe32ca3 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 --
42 2.20.1
43