Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp173922rwb; Mon, 28 Nov 2022 18:50:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TCGZ24EE0cOdPkXh9ccRVaz7zpRZaMdEU1HfUl6XCf9l61+Xd0Yubvd317pjwY1jLYHcl X-Received: by 2002:a17:906:3109:b0:7a0:b505:cae5 with SMTP id 9-20020a170906310900b007a0b505cae5mr47177418ejx.648.1669690257774; Mon, 28 Nov 2022 18:50:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669690257; cv=none; d=google.com; s=arc-20160816; b=q2uDYscI8XrjkDJEkqV7EZgdIJCy67PZoOhl+RJZpeMNUtuDjHJwf2YMwf5962T53j +JxsNmZk8DnSV+/2g6oZ/GFgj+o24VNwowc1sSJtkJqQ8ZnYhYVm00X49yzOih75Sssq RgACtLTs4pRRPExt2tnAhFAjI5VnKi/b/4KwJ+3Mg6tbt5iR115Uj8DCh96RKSoulP95 rHbrr/16vaNxshCJ7QGFOxdUWrq1tmMAEU4jGF5Ui+wve8cMT6K2q3oSYPkKxAJ3xepB Uj93zFmNRTirhvJL5I4zt0IXDgpxU8FbiAF6ZaQctS1DpH74yjwTVRnHi1XNa2ey0Sef N+oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZTx+TtbHQiuyemeCcK5ytUKmVUVmCoh0H5eAmJ4K4qk=; b=1JnX4/g1xkr1M8PwceYtjKUt7inFCsgym4LVvFsDho6rTPTkQEMzzdh7MiMB1NV1D4 AyMzGpD/PsHbl3PpGIW5eFivNXOUODnLsB1dFgUHH3SCAJ4PDeQ1R01ym6o+BHbLvIck nr/aqiSvEKOPeGrHJ2kUbMmkqhltDv7s9dry0pcR0VVdV1YhrIzMMv8jdmI01vYpKimm 5YVaJs6Sabd1iwW+xyU2ppPXSLKXpozSEcWz/P48dl1lsrrTML3ClIMITcmv1cMGyM10 K4FquU5erewtOlS5GWoksG/6o5OmkQ8i80aJ32CwdGnDdKPkczmqtiW4mzvEpz3acnmW 8SHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=zdPnBz8L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne4-20020a1709077b8400b007ade01e723bsi12060483ejc.30.2022.11.28.18.50.21; Mon, 28 Nov 2022 18:50:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=zdPnBz8L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235214AbiK2CeK (ORCPT + 83 others); Mon, 28 Nov 2022 21:34:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234976AbiK2CeH (ORCPT ); Mon, 28 Nov 2022 21:34:07 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE39421A5 for ; Mon, 28 Nov 2022 18:34:05 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id ha10so30558654ejb.3 for ; Mon, 28 Nov 2022 18:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZTx+TtbHQiuyemeCcK5ytUKmVUVmCoh0H5eAmJ4K4qk=; b=zdPnBz8LuT1eYde2dmjuvmer7HQPreaOkL/J34wCWMTbFXn/rlUkZgCRefXxmTxSd6 ynHItCJhUlhX/oB2no2KlunwGK6IeCorVQeNAtZFV3oyjteMsRZVQXkWRXhjrRtoPFfv 5dTvbspYt2uIpdh6UQQCegMEKg5YRfpqkfvCrZnv6NCgczSc7qKFiDJhgpL7nq5Ix5Yw JDv1wHyuf8+45dqkj6Blp5k9x5lc7FxsVJyBNVTlGlCM/p0CjKi6p8sx7XCmaYgR/Pso n4+SrZ1GsX9KXdHppUTzlSbDJaxWGT0Of3R5Nsw2oApzRycZvxrSZv00CIsPOmdE/UTR YTyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZTx+TtbHQiuyemeCcK5ytUKmVUVmCoh0H5eAmJ4K4qk=; b=lkl2snYm84CJ5W95KtuoeP6VgtDzl9x3PO/BlwBrsl+5+cABXPI13rqSfl0YdCM3B4 h2nb8HYUAAUGB5O7w647nQFP0YtRs/HwZAYUY3yDcIFwy/A+aOtJKwyOtqW9iaLuG4Wh I486ZSlZxbfI6y8l+Ogvh0yN2brLY2rXgLG8+7cswFpI1KlUj4Q5lcGs+Mtbuev7zyPy ww2kdPE/Gn7Yf2tx59NJS4VegYSn347HGfdkn0CB/gpCITXO2cb/7D9/db2pyOsYPGAX EXqr0fnrxGsMrD66IEmfYS9uA1782UaRPBlKavlIl9RTBEAM2TFChPkAl6aMkMTyN66I dHlA== X-Gm-Message-State: ANoB5pmfPh/qTzBGDjFOo/ddqy/D9/TJRYGQGcu3k3cbKRh4vwGY3qZy ffbqvLvQbjUjqG461Dw5kxzuwA== X-Received: by 2002:a17:906:8465:b0:7bd:7253:457a with SMTP id hx5-20020a170906846500b007bd7253457amr13730873ejc.81.1669689244396; Mon, 28 Nov 2022 18:34:04 -0800 (PST) Received: from c64.fritz.box ([81.221.122.240]) by smtp.gmail.com with ESMTPSA id a4-20020aa7d744000000b004615f7495e0sm5733817eds.8.2022.11.28.18.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 18:34:04 -0800 (PST) From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= 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 Message-Id: <20221129023401.278780-2-bero@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129023401.278780-1-bero@baylibre.com> References: <20221129023401.278780-1-bero@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the check for the unnecessary pins-are-numbered Devicetree property. Signed-off-by: Bernhard Rosenkränzer Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger Acked-by: Krzysztof Kozlowski Acked-by: Kevin Hilman --- 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