Skip to content

Commit 042a636

Browse files
committed
pinctrl: mediatek: mt8186: Account for probe refactoring
The new MT8186 drive came in and the probe calls were refactored at the same time. Fix it up. Fixes a build issue. Cc: Guodong Liu <[email protected]> Cc: AngeloGioacchino Del Regno <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 156f721 commit 042a636

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/pinctrl/mediatek/pinctrl-mt8186.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,21 +1246,17 @@ static const struct mtk_pin_soc mt8186_data = {
12461246
};
12471247

12481248
static const struct of_device_id mt8186_pinctrl_of_match[] = {
1249-
{ .compatible = "mediatek,mt8186-pinctrl", },
1249+
{ .compatible = "mediatek,mt8186-pinctrl", .data = &mt8186_data },
12501250
{ }
12511251
};
1252-
static int mt8186_pinctrl_probe(struct platform_device *pdev)
1253-
{
1254-
return mtk_paris_pinctrl_probe(pdev, &mt8186_data);
1255-
}
12561252

12571253
static struct platform_driver mt8186_pinctrl_driver = {
12581254
.driver = {
12591255
.name = "mt8186-pinctrl",
12601256
.of_match_table = mt8186_pinctrl_of_match,
12611257
.pm = &mtk_paris_pinctrl_pm_ops,
12621258
},
1263-
.probe = mt8186_pinctrl_probe,
1259+
.probe = mtk_paris_pinctrl_probe,
12641260
};
12651261

12661262
static int __init mt8186_pinctrl_init(void)

0 commit comments

Comments
 (0)