Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2488068ybx; Fri, 8 Nov 2019 05:08:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxF/B7/WpgV4AftOKF6T+3r+93/gZm5dIJ1Yqzb18ETTiEJQxzyjM5vS94JwpqOF6c48hMu X-Received: by 2002:a50:fb14:: with SMTP id d20mr9715215edq.190.1573218484789; Fri, 08 Nov 2019 05:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573218484; cv=none; d=google.com; s=arc-20160816; b=u7Y3uTKT/Nu+V641UhxVOLhoyD/6VuSXk6PUla+QOQRTV/ADTvetlakND9VSTLAV+Y mXnAlhtXBslBCFV728BplbJfL4oZeQlnO0U8hixcdOkmi2slkOHLuw7NnObOcuzINFW/ tr24vUawHOcvV6MVfy/mk0R1uPw4CvU6cvoBNje2n1//N2kNHNyQTkNrGr8/MzW2+1K9 m7sXHmlo4P4bcmruBAVo0ksUKVECinjlzl5SRpR3zINc/jUTZXtT1P+lZZ0zIvhYOawi ZrJhyqhUI5OUvTbYwoTbVMUXofA5sTO5gxe8qkesEfNnllKIrGV8NOEdQsLO3zXdU0G8 Cagg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1C8bi+Glp22eU2mPHcIIhRfHNSQMvhbk1zxbdzRB++Q=; b=s6sIgMNau89KfPco8apoz7QTJr0pP72LTkCy6dSDHjcOBXXtFr9tPWrnTWHCWfHhYn 9FqbQRxzIe19D/tEMYH3n+n95aBqdzNeSyPWZIyQQzT1dznn6SBnOMhm+9EtlF92o/Dw ViSw2GOKd8tuxj4bi+jAFKMRVKiZmQjAyHLri7A8uyrE18/oX6a6iW61BRQu5gi64A40 J/ssWqmSw6lrjrQLnYb43A2k0IJUYf8Ossbv5TcCBYO9oTNc9wfSpYu0LbMhY0eeIJMA GPeQbM4WdXGrE6OtCFkcI7t4XbTWZCjEY4XeaC76/VbllMQPV7d1Q4W1PR61ZvrmUnuR chtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="ZJaCGSD/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si4406214eda.251.2019.11.08.05.07.41; Fri, 08 Nov 2019 05:08:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="ZJaCGSD/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729594AbfKHNCD (ORCPT + 99 others); Fri, 8 Nov 2019 08:02:03 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44281 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729162AbfKHNCA (ORCPT ); Fri, 8 Nov 2019 08:02:00 -0500 Received: by mail-lj1-f195.google.com with SMTP id g3so6103960ljl.11 for ; Fri, 08 Nov 2019 05:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1C8bi+Glp22eU2mPHcIIhRfHNSQMvhbk1zxbdzRB++Q=; b=ZJaCGSD/arZGUVVsA5xq44Wxb64fr04WyEwSqeiMjW/L1bVDA+aRYM5sWnLo9sepTk TEYKJVX4TsUvrSj/LBfKdVrHXqqZUd2PojOxysRopWU2rsgOWmwVffTPBZ9VIs+RV9VH MU/RAqLHFpt23mFgSHXKebqI6NeVbe7jcxiAI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1C8bi+Glp22eU2mPHcIIhRfHNSQMvhbk1zxbdzRB++Q=; b=Mgtz/f1BLb+4e7spbgczAKuCvm/xTyBsDKyy+w+Cye4EndPHe1aX35u+2J9hB/6HeL ldtGGlsxqxIu+2hNb/QA0vW1st29H/SJMw2p42h1LNOkQPYBKFGKjNMkkcKz7Uw2hwt6 zVaXpiQzNO3Sv5TbbUmf/mMOGetsUuub28h08VmTjtVYhBjZMcfxybJPzhFx808xxsLJ fxxHL00LIi2voRx872EXVIg8X65gDNPlqGcNPDaKagF64pakd4YfQ+01eUppo+8mOn8V GpvCRXE1/pWdZMmRSmlbBkGCEUGt7e0Q/gV9Mhfl0rLaA66v4wieid1Ei5BGaQXrUhah sZ/Q== X-Gm-Message-State: APjAAAXt+0Q0ULpO/KWcLf5nkHQRE6LDZoTjKUsA5VjeG70W8CyLXvx6 40TZP5v8cZ2tbxHmatIffzryEA== X-Received: by 2002:a2e:884c:: with SMTP id z12mr6614926ljj.41.1573218117142; Fri, 08 Nov 2019 05:01:57 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id d28sm2454725lfn.33.2019.11.08.05.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 05:01:56 -0800 (PST) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Rasmus Villemoes Subject: [PATCH v4 23/47] soc: fsl: qe: qe_io.c: don't open-code of_parse_phandle() Date: Fri, 8 Nov 2019 14:00:59 +0100 Message-Id: <20191108130123.6839-24-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191108130123.6839-1-linux@rasmusvillemoes.dk> References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe_io.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_io.c b/drivers/soc/fsl/qe/qe_io.c index f6b10f38b2f4..99aeb01586bd 100644 --- a/drivers/soc/fsl/qe/qe_io.c +++ b/drivers/soc/fsl/qe/qe_io.c @@ -141,7 +141,6 @@ EXPORT_SYMBOL(par_io_data_set); int par_io_of_config(struct device_node *np) { struct device_node *pio; - const phandle *ph; int pio_map_len; const unsigned int *pio_map; @@ -150,14 +149,12 @@ int par_io_of_config(struct device_node *np) return -1; } - ph = of_get_property(np, "pio-handle", NULL); - if (ph == NULL) { + pio = of_parse_phandle(np, "pio-handle", 0); + if (pio == NULL) { printk(KERN_ERR "pio-handle not available\n"); return -1; } - pio = of_find_node_by_phandle(*ph); - pio_map = of_get_property(pio, "pio-map", &pio_map_len); if (pio_map == NULL) { printk(KERN_ERR "pio-map is not set!\n"); -- 2.23.0