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
6 [ Upstream commit 9e364e87ad7f2c636276c773d718cda29d62b741 ]
8 MODULE_DEVICE_TABLE(of, <of_match_table> should be called to complete DT
9 OF mathing mechanism and register it.
12 modinfo drivers/mfd/tps65912-spi.ko | grep alias
16 modinfo drivers/mfd/tps65912-spi.ko | grep alias
17 alias: of:N*T*Cti,tps65912C*
18 alias: of:N*T*Cti,tps65912
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>
26 drivers/mfd/tps65912-spi.c | 1 +
27 1 file changed, 1 insertion(+)
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", },
37 +MODULE_DEVICE_TABLE(of, tps65912_spi_of_match_table);
39 static int tps65912_spi_probe(struct spi_device *spi)