diff options
author | Daniel Gomez | 2019-04-22 21:10:20 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2019-05-22 21:27:37 +0200 |
commit | 24e4cf770371df6ad49ed873f21618d9878f64c8 (patch) | |
tree | 8018fd6edfd2d94c956ee0b129cff2c42f943568 /drivers/media/rc | |
parent | media: si2168: add frequency data to frontend info (diff) | |
download | kernel-qcow2-linux-24e4cf770371df6ad49ed873f21618d9878f64c8.tar.gz kernel-qcow2-linux-24e4cf770371df6ad49ed873f21618d9878f64c8.tar.xz kernel-qcow2-linux-24e4cf770371df6ad49ed873f21618d9878f64c8.zip |
media: spi: IR LED: add missing of table registration
MODULE_DEVICE_TABLE(of, <of_match_table> should be called to complete DT
OF mathing mechanism and register it.
Before this patch:
modinfo drivers/media/rc/ir-spi.ko | grep alias
After this patch:
modinfo drivers/media/rc/ir-spi.ko | grep alias
alias: of:N*T*Cir-spi-ledC*
alias: of:N*T*Cir-spi-led
Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/ir-spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/ir-spi.c b/drivers/media/rc/ir-spi.c index 66334e8d63ba..c58f2d38a458 100644 --- a/drivers/media/rc/ir-spi.c +++ b/drivers/media/rc/ir-spi.c @@ -161,6 +161,7 @@ static const struct of_device_id ir_spi_of_match[] = { { .compatible = "ir-spi-led" }, {}, }; +MODULE_DEVICE_TABLE(of, ir_spi_of_match); static struct spi_driver ir_spi_driver = { .probe = ir_spi_probe, |