From nobody Thu Nov 14 07:33:51 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB38CC4332F for ; Tue, 29 Nov 2022 02:34:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235222AbiK2CeL (ORCPT ); Mon, 28 Nov 2022 21:34:11 -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-Google-Smtp-Source: AA0mqf7cNqtLS8XZxcIEfqpN/Zg8AfFILEVbgilC7PIW1LJ9tdQClOSPyxdLvja1MaMQAwYiJDpXfQ== 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: quoted-printable 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=C3=A4nzer 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/pinctr= l/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 =3D pdev->dev.of_node, *node; - struct property *prop; int ret, i; =20 pctl =3D devm_kzalloc(&pdev->dev, sizeof(*pctl), GFP_KERNEL); @@ -1066,11 +1065,6 @@ int mtk_pctrl_init(struct platform_device *pdev, =20 platform_set_drvdata(pdev, pctl); =20 - prop =3D of_find_property(np, "pins-are-numbered", NULL); - if (!prop) - return dev_err_probe(dev, -EINVAL, - "only support pins-are-numbered format\n"); - node =3D of_parse_phandle(np, "mediatek,pctl-regmap", 0); if (node) { pctl->regmap1 =3D syscon_node_to_regmap(node); --=20 2.38.1