Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1015714imu; Fri, 16 Nov 2018 14:13:29 -0800 (PST) X-Google-Smtp-Source: AJdET5fQ5jDtPeZ/QWtGiTRDdhb/paMIm9JSxyU2AZxJrVoDao/GUnZ1AAQt9kUD5qZ3Xkpssxy1 X-Received: by 2002:a63:9845:: with SMTP id l5mr11621514pgo.142.1542406409892; Fri, 16 Nov 2018 14:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542406409; cv=none; d=google.com; s=arc-20160816; b=ryv9CShEszEfHz0P7grff8wZ0mkToGCeGNs+UBANu9c78u79RgjmT7VnmhMne28JRU P0jwmw5eHxtgVUWA47kWIVYaWddLL7xN3KLybz+zqMvwRDkqu75zTvXQCChnlKCFmTOH bztSSoz9Bu2jFqDk3GzeKTie1FnOgODlQVY7JhWA5n0qwxS08yq76IdP+o2Ifug1BpfW hlpQufNqbwRzDpqlWVpd35Vdgdrvple15Bp35pdkfvFmSzgU7u28b47xBJfKg0+9HXJ0 5KQqlFXqo2zszP4HpwNyEi3EcQ2qhIy5mJdHE26bnwCioTPCNjwlRCps0rnZ4cj28X9q 2M5w== 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 :message-id:date:subject:cc:to:from; bh=z20+2CzOTLX/2B946rI2J1ZHpCgM0oKasDbqmx4HY5Y=; b=MWIS/k9s5JWRMThYdeLjLOmHhkDhyPjKiuxnruld+W0+jpZ4/A6if13rh6mlbYucDG GhHsjZoO6GkIQCn6xB2rKOHLJf8NKYCuYR/O9yRZdvZFxTLTVumjDz2gwDusy7RlAN+f johEy8iD5WWGWbJYNGKrN4B8ndyJVzjyD+dgchPaStJiM2pipe9cdOB1PZ2fnN3m8ulv AQH0prU0nomF2ybhFHI4wDhA1byp8JWV5M7rcde1m8HZu7Stn4Z0RFD5hK3ZWxq9BdG+ hGJVce3jV+DrIAZNmUTHYM7OljfSpNl9Kd14tNCqjBKJFtYwfZJBAKbjg4YxS1e5Kk9N WETg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si28793170pgz.593.2018.11.16.14.13.15; Fri, 16 Nov 2018 14:13:29 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729568AbeKQIZT (ORCPT + 99 others); Sat, 17 Nov 2018 03:25:19 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34337 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbeKQIZS (ORCPT ); Sat, 17 Nov 2018 03:25:18 -0500 Received: by mail-ot1-f66.google.com with SMTP id t5so22780341otk.1; Fri, 16 Nov 2018 14:11:08 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=z20+2CzOTLX/2B946rI2J1ZHpCgM0oKasDbqmx4HY5Y=; b=M2NdLCHxbYtrPKCw/dgm5o+x1MCWpb/U+p/Dx/jDee4E7hxzPxq6dfHYxhf/1vHOGL 9E9SE9ZL40EQvZFqfDBUqh86bDQvJJnvCrp65vYviIM9rjFSlLQke+zEuSKk5hFKLhXd EmUUY5a8/XawVDa/CKmGXV1TluAysMpyRVhXs7hbLEGoCiUNk6ltHOcjsDP2KEpJFNAO 9+xXCqMZH+UZ4aMUHLyRUGBlAPUa1k5ytC9eYYuyBff9kk0GSBDR+GQ0LiSxemNU4lME 2wcue1yFDQh/fDurBJP9Au8L1Zn+X+SKgwRz1mNbMf0jwal/Ury70d6IqRyYxBN09Xi7 NCeg== X-Gm-Message-State: AGRZ1gLqCl2xVoBnd295kbZVU+SuTTjk9bV9ADl3AS6RG9Ez/hpRauNk nQWKYYLRS2k/QVJYwiTXYT/uGwb5IA== X-Received: by 2002:a9d:118a:: with SMTP id v10mr7014258otf.281.1542406267698; Fri, 16 Nov 2018 14:11:07 -0800 (PST) Received: from localhost.localdomain (mobile-166-173-57-127.mycingular.net. [166.173.57.127]) by smtp.googlemail.com with ESMTPSA id p204-v6sm12142631oib.25.2018.11.16.14.11.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 14:11:07 -0800 (PST) From: Rob Herring To: James Hogan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ralf Baechle , Paul Burton , linux-mips@linux-mips.org Subject: [PATCH] MIPS: Use device_type helpers to access the node type Date: Fri, 16 Nov 2018 16:10:58 -0600 Message-Id: <20181116221104.23024-2-robh@kernel.org> X-Mailer: git-send-email 2.19.1 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 Remove directly accessing device_node.type pointer and use the accessors instead. This will eventually allow removing the type pointer. Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/pci/pci-rt3883.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/mips/pci/pci-rt3883.c b/arch/mips/pci/pci-rt3883.c index 958899ffe99c..bafbf69e7dc4 100644 --- a/arch/mips/pci/pci-rt3883.c +++ b/arch/mips/pci/pci-rt3883.c @@ -445,8 +445,7 @@ static int rt3883_pci_probe(struct platform_device *pdev) /* find the PCI host bridge child node */ for_each_child_of_node(np, child) { - if (child->type && - of_node_cmp(child->type, "pci") == 0) { + if (of_node_is_type(child, "pci")) { rpc->pci_controller.of_node = child; break; } @@ -464,8 +463,7 @@ static int rt3883_pci_probe(struct platform_device *pdev) for_each_available_child_of_node(rpc->pci_controller.of_node, child) { int devfn; - if (!child->type || - of_node_cmp(child->type, "pci") != 0) + if (!of_node_is_type(child, "pci")) continue; devfn = of_pci_get_devfn(child); -- 2.19.1