From: Krzysztof Kozlowski Date: Wed, 10 Apr 2024 15:25:34 +0000 (+0200) Subject: mailbox: mtk-cmdq-mailbox: fix module autoloading X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dc48215f4fd97214184ffe229353b9f4a714bf4e;p=linux.git 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 Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Jassi Brar --- diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index ead2200f39ba0..080d091e28acf 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -765,6 +765,7 @@ static const struct of_device_id cmdq_of_ids[] = { {.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195}, {} }; +MODULE_DEVICE_TABLE(of, cmdq_of_ids); static struct platform_driver cmdq_drv = { .probe = cmdq_probe,