Skip to content

Commit dc48215

Browse files
krzkJassi Brar
authored andcommitted
mailbox: mtk-cmdq-mailbox: fix module autoloading
Add MODULE_DEVICE_TABLE(), so this module could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 6ffb163 commit dc48215

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ static const struct of_device_id cmdq_of_ids[] = {
765765
{.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195},
766766
{}
767767
};
768+
MODULE_DEVICE_TABLE(of, cmdq_of_ids);
768769

769770
static struct platform_driver cmdq_drv = {
770771
.probe = cmdq_probe,

0 commit comments

Comments
 (0)