From: AngeloGioacchino Del Regno Date: Tue, 26 Jul 2022 14:16:51 +0000 (+0200) Subject: soc: mediatek: mtk-svs: Drop of_match_ptr() for of_match_table X-Git-Tag: v6.1-rc1~155^2~8^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cd80c06784dd55dca97ce10c5f97bcaa3a417ef;p=thirdparty%2Flinux.git soc: mediatek: mtk-svs: Drop of_match_ptr() for of_match_table If CONFIG_OF is not set, we get a -Wunused-const-variable: dropping of_match_ptr() solves that issue. Fixes: 681a02e95000 ("soc: mediatek: SVS: introduce MTK SVS engine") Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20220726141653.177948-5-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger --- diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c index 46cb31255f29f..dde95aa160e95 100644 --- a/drivers/soc/mediatek/mtk-svs.c +++ b/drivers/soc/mediatek/mtk-svs.c @@ -2389,7 +2389,7 @@ static struct platform_driver svs_driver = { .driver = { .name = "mtk-svs", .pm = &svs_pm_ops, - .of_match_table = of_match_ptr(svs_of_match), + .of_match_table = svs_of_match, }, };