Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5131912rwb; Mon, 21 Nov 2022 17:20:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4T9yg1RQSAN4vwo1DUFW5kIoACcaAkCtJBgphpKmIJjLOIStQczWScFZnpHNxouo/s4qjo X-Received: by 2002:a17:906:7852:b0:7b7:718d:22c with SMTP id p18-20020a170906785200b007b7718d022cmr3770934ejm.507.1669080034464; Mon, 21 Nov 2022 17:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669080034; cv=none; d=google.com; s=arc-20160816; b=qVMScHGSxND98K27WrhW5oVsp4rMtaXzAYoKvPo4d5ZV4As5jFpsvXzH9m2IgQVoDo f7MHxrT23avJANUQEsLl6yL09VO1P9f9zm2ulIB9N6wl94VY2ICbCks72quXJvuaKGmt Va28CWZex+KRSzKVE65hA5+kgQBD9AF1Fd++FWeCmIj9dob01UuSVhFra26dEftPSqnn MUyWSqI6+F6HwcVtz2Ucdb6NINqgaw+rZjqVYPRhD5m/JYIYc3D1qwehyMskwOByO6sK bW+Zj4OUxF8/kvnEE3zSRzxc4tx9mI5AtQfWyBRrcFJ/sYrNtJB0ihQgBEXm84dvMGu1 +omw== 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=lErWNiukqPMffRxcLmvbbK43xplVx6vg9wZqH9j7TWEEaP3ErQZpK1QMzFEuD2GRLc 6jwmYlQw24uk57GR3VEjVfJe9OvFcIzpEnKHv00iZC0lA/duZyXGInzPhWeA9U1dnPBP qAw4TtIOqns+piufugE5Nwc9UVjp8Ftu8bnFzL34O6g7Jn/+vkAMg6QKULCFJKVNRvm0 c+lB9KG2O42zSl86YgVJ4zgjlnZzzejKguBtGolZoabmR7F6INO44M7L+Pet9g4aUT1k vny1qnYTo3rnfL2OsWHAekf+/ZbSfEXRw0Vn8EHw3lsiHGB4oDNr9S6zHbIfLyrs1HFl S0aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LxkapDRO; 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 n11-20020a170906118b00b0077e04f856a2si4535527eja.541.2022.11.21.17.20.07; Mon, 21 Nov 2022 17:20:34 -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=LxkapDRO; 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 S232196AbiKVBJt (ORCPT + 91 others); Mon, 21 Nov 2022 20:09:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232080AbiKVBJP (ORCPT ); Mon, 21 Nov 2022 20:09:15 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB07532F4 for ; Mon, 21 Nov 2022 17:08:10 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id f18so32419356ejz.5 for ; Mon, 21 Nov 2022 17:08:10 -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=LxkapDROlNg89vbfyOnHNwYtPPUfl2VexbTmKnYd0BjumMyVcRkoBcbPgGQNiCR76Z lu71Zfj0axIJ5DX8GAYZYxOcUEcnNsw19VoSTfGwI3jpbvJTC7fpGmm28fhX55YGIDul q6HM6mtWmwwZgWn/Jxl0R+IFpAHdrkfwzeiDNe3JLDvu58K0AmooRZlP42VhOD+nOtu8 Wpn2B0vMSsS3VTfpWqyvY0El80MtzxkC3ni7qpQS2roMk2Nk5Sl0U6kG15gzcX8U/yqw CM+eVkiPmV3UsNrgQxJ4fPA3bBMV8yMTG2Cb9YD/l1IjmFGKuLPm6gS44TXGKTDI6kW7 9BIw== 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=uOH6a87duyy3Vr1Nm7m+fyiVkiFvA4ZwYJgVml6cb6TN+HCPVNxZ4/pR+pauZ+3EG4 GKZ3DGk4PMF3sx1rHAxWg9Y7OCPRd43XBrYtZXWCzCMSPZr9g0IJ16dzI+eMJa4UB1Qj B+lpB5FQbhzcsXqc53z8Fom9N5sbkggPYOwYXvG557VQHTVS8OmTs6nEyjM9IcfOjOSs tsRIcYOqLBQIoU29QV97Tgcy8g2666Hja0rIzPbvc5RlpNSuet47baYROOlrmBntHd2c 6E0X7300NglYCuj/Xk6Nebc+AnLpe6pVFbmZCtbHAVs56gGVGFlKNCSIF/wmlnlDhVZ8 CdEg== X-Gm-Message-State: ANoB5pmAH2liVnmSplgNuoP/Uf4NuinQtQLTa3lr8V/JxeC+7O9+wvuE LXsaTPkuz/MIoIHc14EHRkaodw== X-Received: by 2002:a17:906:3810:b0:7b5:cab5:2ea8 with SMTP id v16-20020a170906381000b007b5cab52ea8mr1036389ejc.222.1669079288692; Mon, 21 Nov 2022 17:08:08 -0800 (PST) Received: from c64.fritz.box ([2a01:2a8:8108:8301:7643:bec8:f62b:b074]) by smtp.gmail.com with ESMTPSA id f13-20020a1709064dcd00b007030c97ae62sm5514683ejw.191.2022.11.21.17.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 17:08:08 -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 Subject: [PATCH v2 1/7] pinctrl: mediatek: common: Remove check for pins-are-numbered Date: Tue, 22 Nov 2022 02:07:47 +0100 Message-Id: <20221122010753.3126828-2-bero@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221122010753.3126828-1-bero@baylibre.com> References: <20221122010753.3126828-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=ham 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