Skip to contentSkip to conversation

spi: IR LED: add missing of table registration

PATCH New Daniel Gomez 1 participant 1 message Apr 22, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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
---
 drivers/media/rc/ir-spi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/ir-spi.c +1 -0
index 66334e8..c58f2d3 100644
@@ -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,
Signature · 1 line
2.7.4