]>
Commit | Line | Data |
---|---|---|
37554d48 SL |
1 | From 981fb1a73013aac9fd0a8d871d5ca5933c86a7ef 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 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 | -- | |
42 | 2.20.1 | |
43 |