i3c: master: svc: add the missing module device table
authorClark Wang <xiaoning.wang@nxp.com>
Mon, 27 Dec 2021 07:45:28 +0000 (15:45 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Jan 2022 08:53:44 +0000 (09:53 +0100)
The missing MODULE_DEVICE_TABLE() will cause the svc-i3c-master cannot
be auto probed when it is built in moudle.
So add it.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211227074529.1660398-8-xiaoning.wang@nxp.com
drivers/i3c/master/svc-i3c-master.c

index 884f5349fb76346b430be2bc0772ded1a8d09964..3bc81ef95334a4d6e1b1b94c53ac95da09348db8 100644 (file)
@@ -1614,6 +1614,7 @@ static const struct of_device_id svc_i3c_master_of_match_tbl[] = {
        { .compatible = "silvaco,i3c-master" },
        { /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, svc_i3c_master_of_match_tbl);
 
 static struct platform_driver svc_i3c_master = {
        .probe = svc_i3c_master_probe,