From patchwork Mon Oct 1 16:01:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 147920 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4081947lji; Mon, 1 Oct 2018 09:01:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ebhwC9OrqNHM9PW+yFRsNZttbBlwLrBbd//V3cRp2dUQ10tCkCKtQ8D7UGYMiPlbIqFl4 X-Received: by 2002:a63:f448:: with SMTP id p8-v6mr10867328pgk.124.1538409668186; Mon, 01 Oct 2018 09:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538409668; cv=none; d=google.com; s=arc-20160816; b=HvBJcz9ik9zKnQbuACIWkWK0OLN5s4Mr/R8xzdKe5AMiyhQbo9ToO3X7eLImmLhwQQ lklLAoV5tLxmUOoDAkG2zhyQksHD26e9s6qjI21KFCgxgoDSd5p6tFDQ34YHJItxf3dg +UkIxW8E0bAwFKW43WhzMzzJCH+Zvm8QWOG+ifbUF8tqYa6CWLrOmwP6GJLFS+84IcKe fwXax/VtvOi7eeCadg55k0LVmzCuLoH0xCutqLa1DXNAdHkJTG6pHxlsdbjD3q1cVbG3 JhxLXSzatICLEdpVcb0z7vGOjozDQBujUtTKKa3RVcdQUwWFDxR/uJ1CPd7KL4fq1IBx jgQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Nf4PT5shDPf/+hVggaq9t0eJSg99Emg2bpVIC5H56Po=; b=fprq57w0v7rQjrg4oKrWbYWFOCYDEXCVyiisJmgVjXgAPN8fIGT8B1ydAXYUyHe15s 5UgAXwuGmunMj1ZEYAtfbUV2IOONFgvYhG4nTJbRq6CKWGqsWvN3+j/4ZVIrhTjsRk8A Pp6f+enGl2aRuW40c9b3yKvxgtsFYKl5L5/q+NU5pS5aQ+I7wyVO+GWmjtbOkIEy7sKD PzqYfF/g/IaagAiTDbpeT8EgjSPy3IIoGNETTdfDgmPJuXO9oDoTlpbDc4Rd0+rAbFuQ +3gJkfjMfG01mAkeMRIag3WMWXPSsPJV93R1yMcSmcIbNiHMYisO7WDHw5dQC15RD/XZ 3Nlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 n3-v6si9786707plb.435.2018.10.01.09.01.07; Mon, 01 Oct 2018 09:01:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1725994AbeJAWjf (ORCPT + 6 others); Mon, 1 Oct 2018 18:39:35 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33667 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725735AbeJAWjf (ORCPT ); Mon, 1 Oct 2018 18:39:35 -0400 Received: by mail-ot1-f65.google.com with SMTP id m23-v6so13650048otf.0; Mon, 01 Oct 2018 09:01:07 -0700 (PDT) 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; bh=Nf4PT5shDPf/+hVggaq9t0eJSg99Emg2bpVIC5H56Po=; b=LSFvBpARdlg2y3RG42SJ605Gi/4veT8y2nAPBd3l0QETqnSUHTrXWejOxqOV0nE4a1 UmnwwvlYuZkSv8oqgjQ64pCVw8JNj43jHI1z6A3+uVXAuQaWqZSTJR1NL40T7z+4ROIB JMJod8Lk2aHhAEgInXHXnxZ+iN0MML6ffQ2CG4FQWpaKcm7KxEZvES5k/iY57feWQg6G LFZ2sGmwyc294SKpaS15GybAZEfZaxjGlQv301eiSDjeL1SKgx8zffR0KMUAGHRaNVIQ 6NcsGZjVjtV51bD8/6SUXJhHkfpdzDDHrMPNNr5npxohIC11sKNacI1+A4Um8lbTo9tK gXCQ== X-Gm-Message-State: ABuFfogYRFHVYjG6agcLL06az0mABuSR1FOM074fZ8vjTKqXVkWtr1Sr kS7i5BD6KyvMF1ggGPdm+NMeGAaFxw== X-Received: by 2002:a9d:36f:: with SMTP id 102-v6mr7176346otv.310.1538409666193; Mon, 01 Oct 2018 09:01:06 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u17-v6sm4510946oia.43.2018.10.01.09.01.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 09:01:05 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Frank Rowand Subject: [PATCH] of: Fix property name in of_node_get_device_type Date: Mon, 1 Oct 2018 11:01:04 -0500 Message-Id: <20181001160104.22573-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Commit 0413bedabc88 ("of: Add device_type access helper functions") added a new helper not yet used in preparation for some treewide clean up of accesses to 'device_type' properties. Unfortunately, there's an error and 'type' was used for the property name. Fix this. Fixes: 0413bedabc88 ("of: Add device_type access helper functions") Cc: Frank Rowand Signed-off-by: Rob Herring --- include/linux/of.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/include/linux/of.h b/include/linux/of.h index f581531d797e..04cef4490efc 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -991,7 +991,7 @@ static inline struct device_node *of_find_matching_node( static inline const char *of_node_get_device_type(const struct device_node *np) { - return of_get_property(np, "type", NULL); + return of_get_property(np, "device_type", NULL); } static inline bool of_node_is_type(const struct device_node *np, const char *type)