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

i3c: master: cdns: fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Link: https://lore.kernel.org/r/20240826123957.379212-1-liaochen4@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Liao Chen and committed by
Alexandre Belloni
133f67be ced86959

+1
+1
drivers/i3c/master/i3c-master-cdns.c
··· 1562 1562 { .compatible = "cdns,i3c-master", .data = &cdns_i3c_devdata }, 1563 1563 { /* sentinel */ }, 1564 1564 }; 1565 + MODULE_DEVICE_TABLE(of, cdns_i3c_master_of_ids); 1565 1566 1566 1567 static int cdns_i3c_master_probe(struct platform_device *pdev) 1567 1568 {