From: "Bernhard Rosenkränzer" <bero@baylibre.com>
To: devicetree@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com,
krzysztof.kozlowski@linaro.org, matthias.bgg@gmail.com,
angelogioacchino.delregno@collabora.com, khilman@baylibre.com,
linux-gpio@vger.kernel.org, linus.walleij@linaro.org
Subject: [PATCH v3 1/7] pinctrl: mediatek: common: Remove check for pins-are-numbered
Date: Tue, 29 Nov 2022 03:33:55 +0100 [thread overview]
Message-ID: <20221129023401.278780-2-bero@baylibre.com> (raw)
In-Reply-To: <20221129023401.278780-1-bero@baylibre.com>
Remove the check for the unnecessary pins-are-numbered Devicetree property.
Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Kevin Hilman <khilman@baylibre.com>
---
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
index 076ae0b38e3d7..553d16703475b 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
@@ -1057,7 +1057,6 @@ int mtk_pctrl_init(struct platform_device *pdev,
struct pinctrl_pin_desc *pins;
struct mtk_pinctrl *pctl;
struct device_node *np = pdev->dev.of_node, *node;
- struct property *prop;
int ret, i;
pctl = devm_kzalloc(&pdev->dev, sizeof(*pctl), GFP_KERNEL);
@@ -1066,11 +1065,6 @@ int mtk_pctrl_init(struct platform_device *pdev,
platform_set_drvdata(pdev, pctl);
- prop = of_find_property(np, "pins-are-numbered", NULL);
- if (!prop)
- return dev_err_probe(dev, -EINVAL,
- "only support pins-are-numbered format\n");
-
node = of_parse_phandle(np, "mediatek,pctl-regmap", 0);
if (node) {
pctl->regmap1 = syscon_node_to_regmap(node);
--
2.38.1
next prev parent reply other threads:[~2022-11-29 2:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 2:33 [PATCH v3 0/7] Remove the pins-are-numbered DT property Bernhard Rosenkränzer
2022-11-29 2:33 ` Bernhard Rosenkränzer [this message]
2022-11-29 2:33 ` [PATCH v3 2/7] pinctrl: stm32: Remove check for pins-are-numbered Bernhard Rosenkränzer
2022-11-29 2:33 ` [PATCH v3 3/7] dt-bindings: pinctrl: mediatek,mt65xx: Deprecate pins-are-numbered Bernhard Rosenkränzer
2022-11-29 8:29 ` AngeloGioacchino Del Regno
2022-11-29 2:33 ` [PATCH v3 4/7] dt-bindings: pinctrl: st,stm32: " Bernhard Rosenkränzer
2022-11-29 2:33 ` [PATCH v3 5/7] arm64: dts: mediatek: Remove pins-are-numbered property Bernhard Rosenkränzer
2022-12-05 13:20 ` Kevin Hilman
2022-12-16 11:50 ` Matthias Brugger
2022-11-29 2:34 ` [PATCH v3 6/7] ARM: " Bernhard Rosenkränzer
2022-11-29 2:34 ` [PATCH v3 7/7] ARM: dts: stm32: Remove the " Bernhard Rosenkränzer
2022-12-05 13:21 ` Kevin Hilman
2023-01-03 7:59 ` Alexandre TORGUE
2022-12-03 9:22 ` [PATCH v3 0/7] Remove the pins-are-numbered DT property Linus Walleij
2022-12-06 16:25 ` Bernhard Rosenkränzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221129023401.278780-2-bero@baylibre.com \
--to=bero@baylibre.com \
--cc=alexandre.torgue@foss.st.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=matthias.bgg@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox