Skip to content

Commit

Permalink
pinctrl: mediatek: common: Remove check for pins-are-numbered
Browse files Browse the repository at this point in the history
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>
Link: https://lore.kernel.org/r/20221129023401.278780-2-bero@baylibre.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Bernhard Rosenkränzer authored and Linus Walleij committed Dec 3, 2022
1 parent cf2fc8f commit 78ee2e0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/pinctrl/mediatek/pinctrl-mtk-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 78ee2e0

Please sign in to comment.