i3c: master: cdns: fix module autoloading
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/i3c/master/i3c-master-cdns.c | 1 + 1 file changed, 1 insertion(+)
drivers/i3c/master/i3c-master-cdns.c +1 -0
@@ -1562,6 +1562,7 @@ static const struct of_device_id cdns_i3c_master_of_ids[] = { { .compatible = "cdns,i3c-master", .data = &cdns_i3c_devdata }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE (of, cdns_i3c_master_of_ids);static int cdns_i3c_master_probe (struct platform_device *pdev) {
Signature · 1 line
2.34.1
Quoted 13 lines · Liao Chen
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable.Signed-off-by Liao Chen <[email protected]>--- drivers/i3c/master/i3c-master-cdns.c | 1 + 1 file changed, 1 insertion(+)drivers/i3c/master/i3c-master-cdns.c +0
-0
drivers/i3c/master/i3c-master-cdns.c static const struct of_device_id cdns_i3c_master_of_ids[] = { · line 1566
Quoted 5 lines
drivers/i3c/master/i3c-master-cdns.c +1
-0@@ -1562,6 +1562,7 @@ static const struct of_device_id cdns_i3c_master_of_ids[] = { { .compatible = "cdns,i3c-master", .data = &cdns_i3c_devdata }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE (of, cdns_i3c_master_of_ids);
why not to use i3c as type instead of "of" ? Just curious, if it makes sense.
Quoted 2 lines
drivers/i3c/master/i3c-master-cdns.c +0
-0static int cdns_i3c_master_probe (struct platform_device *pdev) {
Quoted 4 lines · Liao Chen
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable.
Applied, thanks!
[1/1] i3c: master: cdns: fix module autoloading
https://git.kernel.org/abelloni/c/133f67bea5e0
Best regards,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com