From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DAB1C433FE for ; Wed, 5 Oct 2022 15:32:17 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MjJTq4MlQz3c78 for ; Thu, 6 Oct 2022 02:32:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HVQ3STUU; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=andriy.shevchenko@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HVQ3STUU; dkim-atps=neutral Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MjJQq6V0Xz3bYM for ; Thu, 6 Oct 2022 02:29:39 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664983780; x=1696519780; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uI6x+OuIX8Zsde+No42SImigImxqe3gZvNiHUYWU+j8=; b=HVQ3STUUt5VXRX7YwFaLVzHDKSLEGcFj9QKnvndHysak3Uzk/JXfJnmB tScfBAOGitTAJV3To3+dn/Fnd7nXmYUpPaRVx3ewp5u46qc+/OVRaDZET z/ISXdb/9yYMUQ7FOLyKfmjxulVrSeLXFp2Tf2so2cZ3xUodhIqwyjLBw l2LfJ1ZaAP8WV4+vvf+gyJleQXCc3Bo8R+MXz+WfcpPttjlY/rC0R0G5o A2yNL/O2tC1ZmRikAB27Pc2bxUqDTA7R2F/FVjfip224nWXgPf82p3EPk i2c4CydaKtHhTJnZU6UHf72imG893ymfF+8qx9wWv3kB+TuXuJRUKMGGr w==; X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="304170120" X-IronPort-AV: E=Sophos;i="5.95,161,1661842800"; d="scan'208";a="304170120" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2022 08:29:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="626609383" X-IronPort-AV: E=Sophos;i="5.95,161,1661842800"; d="scan'208";a="626609383" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 05 Oct 2022 08:29:31 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 15725199; Wed, 5 Oct 2022 18:29:51 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH v2 2/2] soc: fsl: qe: Switch to use fwnode instead of of_node Date: Wed, 5 Oct 2022 18:29:47 +0300 Message-Id: <20221005152947.71696-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221005152947.71696-1-andriy.shevchenko@linux.intel.com> References: <20221005152947.71696-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Scally , Li Yang , Sakari Ailus , Heikki Krogerus , Qiang Zhao Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" The OF node in the GPIO library is deprecated and soon will be removed. GPIO library now accepts fwnode as a firmware node, so switch the driver to use it. Signed-off-by: Andy Shevchenko --- drivers/soc/fsl/qe/gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qe/gpio.c b/drivers/soc/fsl/qe/gpio.c index 99f7de43c3c6..9abb45ab138b 100644 --- a/drivers/soc/fsl/qe/gpio.c +++ b/drivers/soc/fsl/qe/gpio.c @@ -19,6 +19,8 @@ #include #include #include +#include + #include struct qe_gpio_chip { @@ -179,7 +181,7 @@ struct qe_pin *qe_pin_request(struct device_node *np, int index) goto err0; } - if (!of_device_is_compatible(gc->of_node, "fsl,mpc8323-qe-pario-bank")) { + if (!fwnode_device_is_compatible(gc->fwnode, "fsl,mpc8323-qe-pario-bank")) { pr_debug("%s: tried to get a non-qe pin\n", __func__); err = -EINVAL; goto err0; -- 2.35.1