diff options
author | Daniel Gomez <dagmcr@gmail.com> | 2019-04-22 21:09:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-15 11:54:02 +0200 |
commit | 12c57327a12890e5120fdf2c94f16d7896d63528 (patch) | |
tree | a322fa9adfc9d318a5e545d592887ab60cf76410 /drivers/mfd | |
parent | 1196b79a20f7d3c78562312230584a46c9bd3f55 (diff) | |
download | linux-stable-12c57327a12890e5120fdf2c94f16d7896d63528.tar.gz linux-stable-12c57327a12890e5120fdf2c94f16d7896d63528.tar.bz2 linux-stable-12c57327a12890e5120fdf2c94f16d7896d63528.zip |
mfd: tps65912-spi: Add missing of table registration
[ Upstream commit 9e364e87ad7f2c636276c773d718cda29d62b741 ]
MODULE_DEVICE_TABLE(of, <of_match_table> should be called to complete DT
OF mathing mechanism and register it.
Before this patch:
modinfo drivers/mfd/tps65912-spi.ko | grep alias
alias: spi:tps65912
After this patch:
modinfo drivers/mfd/tps65912-spi.ko | grep alias
alias: of:N*T*Cti,tps65912C*
alias: of:N*T*Cti,tps65912
alias: spi:tps65912
Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/tps65912-spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c index 3bd75061f777..f78be039e463 100644 --- a/drivers/mfd/tps65912-spi.c +++ b/drivers/mfd/tps65912-spi.c @@ -27,6 +27,7 @@ static const struct of_device_id tps65912_spi_of_match_table[] = { { .compatible = "ti,tps65912", }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, tps65912_spi_of_match_table); static int tps65912_spi_probe(struct spi_device *spi) { |