Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8439640rwp; Wed, 19 Jul 2023 09:47:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGpj6NkfikmHpFPXWGjy6sYVhDC6+mv1WMXIRuHdsIWQ98Yn974PHBe44SYJ/FEuLft4pec X-Received: by 2002:aa7:d714:0:b0:51e:1040:adc3 with SMTP id t20-20020aa7d714000000b0051e1040adc3mr2671822edq.33.1689785252030; Wed, 19 Jul 2023 09:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689785252; cv=none; d=google.com; s=arc-20160816; b=HC2DQe1/wQZ4ezOw1S+y08X0BU9dvDcmQ0QbW1uHKWFuIRTDrCnWk0Bdr2BuZrc07p wuVwQV85+ODH61pNFldIy0Wft1StMup/CvKMSgbfBH6MYXHj3f5g5rYSw1gzRnJOR+tH W5uyv5t20pXZF3faNzw4XAJIsNhYVqF2yfm2JlYePoi6OeAKHm3y+hcxeJOCfo+KSf6C 6psV9/kS/Jm/u7FNY+7iyBXMblTmViflnQPE0rQCy/E+005u2A3Gs0+Wqs8Hld66lBQD N5dEhM7Uk+97FZGg/M5ILn9xR/n6FKiMzp/rrOHl/ERJY1/fXh6sp03cKr8zaKicfzk8 I1vg== 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=q3Vmf1NOG+ODjCHOgvNL111a44nf8BOJMta6b8HQDok=; fh=7Iv+nmknwq0vzuxY/p9xeluMk1WnPOovtl66aotocHY=; b=PXXhG+Xk05GH/AYWmkU9rxH9CNPNg3LSaKZ8bFltiw1MWvCjTz2xYDufkNNQFQkkDg 3RguEU8LrcTfeHzMBfXXAz3RJO+1uYt4h0ZaBYkgvu+8d5Bez6OdAqSYKfYcxsimxgog 8DFpNkAjD2jHu7qqK6uYx6AtDjRfADFW/FGAgj8U2giC3VXQnKhC+HNQ4ZxFsEWxj07M dxk6EYcvWe9aoZpAAet8Ioggw4TEvMCbKSFO4B0IKvIFJFUoqrbEutxh6ixJAS3gUCka NS6vliAmd/cd7gLID+8J2dBbbteCWY7IISuBX5Q37bASFlvZOfMi9XQ9Pwp8S7h/jIqD q5xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=KM4n0tGj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020aa7d150000000b0051878e08975si3257992edo.441.2023.07.19.09.47.07; Wed, 19 Jul 2023 09:47:32 -0700 (PDT) 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=@sifive.com header.s=google header.b=KM4n0tGj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbjGSQex (ORCPT + 99 others); Wed, 19 Jul 2023 12:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbjGSQev (ORCPT ); Wed, 19 Jul 2023 12:34:51 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78BBF1BB for ; Wed, 19 Jul 2023 09:34:50 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1b8a8154f9cso7284075ad.1 for ; Wed, 19 Jul 2023 09:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1689784490; x=1690389290; 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=q3Vmf1NOG+ODjCHOgvNL111a44nf8BOJMta6b8HQDok=; b=KM4n0tGjZndeHQmSDMlsp7ofZX/LnEb4qirUfsAM54X9Oy82L0EZEHRalHPNnDygG6 nNx8cSdB5UYvQ/u+WH4OGpsBvnwtGTv2kudZfZ7ShkkiQauK8i3dA2eaFQwDICEyTDiA FOTbe5VBBGE6ukx1/g8oMY1+FT6DFqHeDxFS1sLciRyq295/ddfMs1GkCUjXxbtD8B6/ 4mIi3jh018Joh4zJWwGo7ikDeLCV0a2pg+1+judZ1neV+8/tFxzqjyWxWN5qPIE6WWdD Ys2+SxdHHuZLUcEIQr3Tehb8+F4be5mG7as7vi4F8o97xpSw8PRqEqxRlBxQJdZokZsb X9Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689784490; x=1690389290; 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=q3Vmf1NOG+ODjCHOgvNL111a44nf8BOJMta6b8HQDok=; b=TKRl8JRN7O84hY4kEqtH0vR5bp/ZgZbtj4dqLs8kD5IMD5e5V8/EPlq2vMStIMVh/c IBS4bAT+Ix8pdF4NaztVCkotNiMq0qj8ib3kvmaWFQwaqLmTwrrp8yoWWnrFuY51faiy YT/AjRptiGuqQVqSgQWTCPrkRAHHZnBSLoZDd/buxM7vvEs8Ql6pqPH3+kiYepDqdJP+ pIRoJZkGHGajx+ryPEpBgmNaZhC+4cfn//YgaGuP2FPa/5yjzxFAoHO1FwzKbDx2PbL3 /S/9kKp/mrMKUBbtyj/2cUwyNeHKvIVPGOQCVOzVMLQ4jzOLz5HWOk3LWFd882FM9mJ4 7Dcg== X-Gm-Message-State: ABy/qLZw1WCGkqJwQtTqItFEuo3++f2/e+wnUfbAAXE//g7b8LgPlm1j 4EdyITJk4K50eE7ul1Y2oawNtw== X-Received: by 2002:a17:903:2288:b0:1b6:9954:2030 with SMTP id b8-20020a170903228800b001b699542030mr3456086plh.8.1689784489937; Wed, 19 Jul 2023 09:34:49 -0700 (PDT) Received: from sw06.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id x6-20020a1709027c0600b001b0358848b0sm4199276pll.161.2023.07.19.09.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 09:34:49 -0700 (PDT) From: Samuel Holland To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Cc: Emil Renner Berthing , Rob Herring , Frank Rowand , Samuel Holland , Palmer Dabbelt , Paul Walmsley , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 1/4] gpio: sifive: Directly use the device's fwnode Date: Wed, 19 Jul 2023 09:34:42 -0700 Message-Id: <20230719163446.1398961-2-samuel.holland@sifive.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719163446.1398961-1-samuel.holland@sifive.com> References: <20230719163446.1398961-1-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 There is no need to convert dev->of_node back to a fwnode_handle. Signed-off-by: Samuel Holland --- Changes in v2: - New patch for v2 drivers/gpio/gpio-sifive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index 745e5f67254e..ab32c952c61b 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -254,7 +254,7 @@ static int sifive_gpio_probe(struct platform_device *pdev) chip->gc.owner = THIS_MODULE; girq = &chip->gc.irq; gpio_irq_chip_set_chip(girq, &sifive_gpio_irqchip); - girq->fwnode = of_node_to_fwnode(node); + girq->fwnode = dev->fwnode; girq->parent_domain = parent; girq->child_to_parent_hwirq = sifive_gpio_child_to_parent_hwirq; girq->handler = handle_bad_irq; -- 2.40.1