Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3460753pxb; Wed, 14 Apr 2021 06:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx4+S0+fhSFvo1kGqDrMmb7cHROPr/v0LMixggiYfdNf/9rvSDX2mSn++g7N81v7jUeHms X-Received: by 2002:aa7:c1c8:: with SMTP id d8mr26473994edp.236.1618405827584; Wed, 14 Apr 2021 06:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618405827; cv=none; d=google.com; s=arc-20160816; b=OAiCWLDhFzYV7jHqArNfhxVowjZBirgrQqU3lovZYZTxxRzLh+ikK21Ro/ow6O1AVx sBgoYnrNWTqL2YwTabA9zGDzun5lHJuLyFmjK92shzPju5BP0zIQCCU25QkKSTl0fNze 1Dou8FYqHaZ3l4txd4KcTuzpVaxlB4RD9+G8KerhegMKH8MR+ccyQlK+J8t9iAODUZ9p ky9GLHLPih+r2mY2HL2ZrvMgajU/jxbNea+Bx3B9OiGzRSD9Ru0XCaKyXrmET0I0/0ft dDIiQz4BuEZU9i2b9YiRmrkXd53E70aCP1Z5ijIkYRfpkH+TKAskXFrbIZwREu/v6q5c 7HMg== 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=KyKCHbVUuM78DLJQ6iKYbE/8/YHUHid6Z5P0PEZg9RQ=; b=EBnxxNJRXToEeOWDWQyk3kjiza4Jui9M+XgKFDZ9HKWeZcnhSjZvfLFqrUnMwbbG86 FNxYCXmeMH94Ko/nV3uEkUUtiekGxmz/sXezO/y6+TMQmdND3Ybd1bTqJbHQ04dc8Noh AK2QHja7t6vH0HHyIMFmP2gfazuv4SqHbtd41e76cBBeowE/8PzXdLZThl54NYoMis78 E6NjIuCH0VSbNvepZCCAZ+fa2eiDE/TEcMr8jNNjyiurTlcjvAwTmV+tWJs2Iq48RdAo pez0Yc/nlgcqsXR+CpIb5fJulGUxBynkoeLX6jQyXOa59JveX+059ZGLlcS/j1WbezhH r6Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NAvH4Tmq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si827704ejs.248.2021.04.14.06.09.59; Wed, 14 Apr 2021 06:10:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NAvH4Tmq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233171AbhDNDNs (ORCPT + 99 others); Tue, 13 Apr 2021 23:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232943AbhDNDNh (ORCPT ); Tue, 13 Apr 2021 23:13:37 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CBF3C06138D; Tue, 13 Apr 2021 20:12:53 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id w10so13408073pgh.5; Tue, 13 Apr 2021 20:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KyKCHbVUuM78DLJQ6iKYbE/8/YHUHid6Z5P0PEZg9RQ=; b=NAvH4TmqSeGm98xrtWJRUm6UZo4ZvRLXQaMtG2RW+EykdYihgB+RCLHvu4sNiil1qr lQlHUtBTBHzvnxu1ArOPxvXsKJnvdFFbnfqTKBpnvLTQfBxBMKIPRkF/fF0P1tdmq7O0 5nw603ZGRB+jmnorM0hEwLv4j9AqfcGWGt7i6UTja4IUyGNaT27N4dsnbAAcxGwkOj/P mt2ds2DhK48KBRrkclktwmWRMQjwCqC9zj9M5hqDXXfK56FoOvADrDgKMMsIayLjKdJY n/svZ4fTI/NHFbi1vepRMeM/d6G/GQwSz2CPGt0kDv+PMFi9lPf6Egf+BpQRRGol7cBh VVeA== 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=KyKCHbVUuM78DLJQ6iKYbE/8/YHUHid6Z5P0PEZg9RQ=; b=TPrSLVGc8UJlb3b639JNlR04xsWNIO8qFKLPy74W/IlJzVreJJ2h/7yCtmWsQc6fno LRkftzyjmjrMQq80ImeCeHdt+ZcixR2Sg5Z2griUie1v5LX3tbclFa0Be0g+FcbrSpHI E8A1jXi5vXejWF9nAaizm1Pe6ASLDNPMKmRFkSeBF7lWRSpafeQ7k1+7U1NuRMvuHN2J nb5oEk944ItMnz3p+njORizLETJyicjnh+11kG8BfGvN8kAXUQbV58EyrKbdxMNBN/zz S52AfjiLVDemBHlCahGlaiYNiRO51i/cFM1ZBu9WFrdGnHqRLO1tMZwfBfMSXJWHKM07 Osig== X-Gm-Message-State: AOAM532hrdLMqxojGY25WclvTSXo4idsJwwG5u/iClkIhel1HsO4iBBy 2h/73VWsLkMF9uQRIBGluE0= X-Received: by 2002:a63:c66:: with SMTP id 38mr35659580pgm.69.1618369972830; Tue, 13 Apr 2021 20:12:52 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id d17sm13971605pfo.117.2021.04.13.20.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 20:12:52 -0700 (PDT) From: Ilya Lipnitskiy To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Ryazanov Cc: Ilya Lipnitskiy Subject: [PATCH v2 4/8] MIPS: pci-rt3883: more accurate DT error messages Date: Tue, 13 Apr 2021 20:12:36 -0700 Message-Id: <20210414031240.313852-5-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210414031240.313852-1-ilya.lipnitskiy@gmail.com> References: <20210414031240.313852-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Existing strings do not make sense: one is always NULL and the other refers to the wrong parent node. Signed-off-by: Ilya Lipnitskiy --- 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 e422f78db5bc..aebd4964ea34 100644 --- a/arch/mips/pci/pci-rt3883.c +++ b/arch/mips/pci/pci-rt3883.c @@ -431,8 +431,7 @@ static int rt3883_pci_probe(struct platform_device *pdev) if (!rpc->intc_of_node) { dev_err(dev, "%pOF has no %s child node", - rpc->intc_of_node, - "interrupt controller"); + np, "interrupt controller"); return -EINVAL; } @@ -446,8 +445,7 @@ static int rt3883_pci_probe(struct platform_device *pdev) if (!rpc->pci_controller.of_node) { dev_err(dev, "%pOF has no %s child node", - rpc->intc_of_node, - "PCI host bridge"); + np, "PCI host bridge"); err = -EINVAL; goto err_put_intc_node; } -- 2.31.1