Skip to content

Commit ef0bdc8

Browse files
Daniel Gomezgregkh
authored andcommitted
mfd: tps65912-spi: Add missing of table registration
[ Upstream commit 9e364e8 ] 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 <[email protected]> Signed-off-by: Daniel Gomez <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent bad5f0b commit ef0bdc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/tps65912-spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ static const struct of_device_id tps65912_spi_of_match_table[] = {
2727
{ .compatible = "ti,tps65912", },
2828
{ /* sentinel */ }
2929
};
30+
MODULE_DEVICE_TABLE(of, tps65912_spi_of_match_table);
3031

3132
static int tps65912_spi_probe(struct spi_device *spi)
3233
{

0 commit comments

Comments
 (0)