]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i3c: master: cdns: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 12:39:57 +0000 (12:39 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 5 Sep 2024 16:46:19 +0000 (18:46 +0200)
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>
drivers/i3c/master/i3c-master-cdns.c

index c1627f3552ce3ebffca5a222407f4b8bf3dfb6f8..ee555255f1a2404944628f4f6927c5e93b7e835a 100644 (file)
@@ -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)
 {