mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
4a0bbf4815
commit
24e4cf7703
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user