Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel Gomez and committed by
Mauro Carvalho Chehab
24e4cf77 4a0bbf48

+1
+1
drivers/media/rc/ir-spi.c
··· 161 161 { .compatible = "ir-spi-led" }, 162 162 {}, 163 163 }; 164 + MODULE_DEVICE_TABLE(of, ir_spi_of_match); 164 165 165 166 static struct spi_driver ir_spi_driver = { 166 167 .probe = ir_spi_probe,