Commit 78ee2e07 authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer Committed by Linus Walleij
Browse files

pinctrl: mediatek: common: Remove check for pins-are-numbered

parent cf2fc8f8
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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);