* [PATCH] pinctrl: mediatek: mt8186: Account for probe refactoring
@ 2022-03-22 23:03 Linus Walleij
0 siblings, 0 replies; only message in thread
From: Linus Walleij @ 2022-03-22 23:03 UTC (permalink / raw)
To: linux-gpio; +Cc: Linus Walleij, Guodong Liu, AngeloGioacchino Del Regno
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 <guodong.liu@mediatek.com>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/pinctrl/mediatek/pinctrl-mt8186.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8186.c b/drivers/pinctrl/mediatek/pinctrl-mt8186.c
index eeedab38c2b8..a4dd5197abc1 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8186.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8186.c
@@ -1246,13 +1246,9 @@ static const struct mtk_pin_soc mt8186_data = {
};
static const struct of_device_id mt8186_pinctrl_of_match[] = {
- { .compatible = "mediatek,mt8186-pinctrl", },
+ { .compatible = "mediatek,mt8186-pinctrl", .data = &mt8186_data },
{ }
};
-static int mt8186_pinctrl_probe(struct platform_device *pdev)
-{
- return mtk_paris_pinctrl_probe(pdev, &mt8186_data);
-}
static struct platform_driver mt8186_pinctrl_driver = {
.driver = {
@@ -1260,7 +1256,7 @@ static struct platform_driver mt8186_pinctrl_driver = {
.of_match_table = mt8186_pinctrl_of_match,
.pm = &mtk_paris_pinctrl_pm_ops,
},
- .probe = mt8186_pinctrl_probe,
+ .probe = mtk_paris_pinctrl_probe,
};
static int __init mt8186_pinctrl_init(void)
--
2.35.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-22 23:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-22 23:03 [PATCH] pinctrl: mediatek: mt8186: Account for probe refactoring Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).