Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp609416yba; Fri, 3 May 2019 07:39:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs/nIS6govLKl/Ed3ZT39M44//kgVetowSKB0fICgdZ8rVAC+NbrHC0hvotl4baerCf7go X-Received: by 2002:aa7:82cb:: with SMTP id f11mr11690274pfn.0.1556894355452; Fri, 03 May 2019 07:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556894355; cv=none; d=google.com; s=arc-20160816; b=svsK6cWagnA3SqTOlCHhWcaoMJ6fzVrauUWnoUYwsEKpA6oPATsu8sEDS9kmhJnAwA ghI7TXdhhYfgdf9+ohXbWYtt8HEOYkRCf30ssbf2gp2rBsD5n4DZ0kYgGKBj1Ot0R8oz Rj1QBF3XPeevG+pfynis5KHT/lQ+8Fh8vKOZmAUpFYx+ipel4g4PYeEyw7MKcHb1xkiN /Qce3FBR41fQEBgwVcPaRRJpmZc8tU+moeUkJqBBzElqDH2uAG6MjhK6QmwgKoIEAMuj SyBKpeo/jvND2GlGAdb8GMMiTBcF9pUhvWNJAxMt+qrLkimNheqWc7g9Nx3kikpA2Nxs bI/w== 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; bh=0dbIINFjfKDQLr/dhI4e1Fiu5KiA4IRqucHP9nymJ9k=; b=rTcoH8DOI00z55VI5B3Dqn9iMgRtZa51d9lmlyEfj+UTWacEwFanfpCRbKJK2bCIXT gkLaA6I8BYtucqBUSJcgCQv7v/hLerB9VcsdNSnRldn+i2Gnw9Np/hfPzkSaVKuI85PX Yyi0xvaqLEpd02Z9SGrdGz5aAtzHzxX+WcFCK4bKVCBzm8dOaBXfUK+FremEQTcU0CUg 7DHd5svzoY7y7astsAYlB+V0hnDa1qQlyNAcneIVFvweSElhKnYE4ufHmHHL0S19h7zm RnMBN4NP1Lj1+Srb/4Ct3FhvIWGbeXqiCnqH9FPJ/idMG2T9Dw0eb9O3cgp6fJdDMOSI 6FeQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si2604428pll.213.2019.05.03.07.39.00; Fri, 03 May 2019 07:39:15 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbfECOfR (ORCPT + 99 others); Fri, 3 May 2019 10:35:17 -0400 Received: from smtp-out.xnet.cz ([178.217.244.18]:17089 "EHLO smtp-out.xnet.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbfECOfQ (ORCPT ); Fri, 3 May 2019 10:35:16 -0400 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 52D994AD8; Fri, 3 May 2019 16:27:50 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 58992be4; Fri, 3 May 2019 16:27:48 +0200 (CEST) From: =?UTF-8?q?Petr=20=C5=A0tetiar?= To: netdev@vger.kernel.org, devicetree@vger.kernel.org, Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Russell King Cc: Florian Fainelli , Heiner Kallweit , Frank Rowand , Srinivas Kandagatla , Maxime Ripard , =?UTF-8?q?Petr=20=C5=A0tetiar?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 09/10] ARM: Kirkwood: support of_get_mac_address new ERR_PTR error Date: Fri, 3 May 2019 16:27:14 +0200 Message-Id: <1556893635-18549-10-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1556893635-18549-1-git-send-email-ynezz@true.cz> References: <1556893635-18549-1-git-send-email-ynezz@true.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There was NVMEM support added to of_get_mac_address, so it could now return ERR_PTR encoded error values, so we need to adjust all current users of of_get_mac_address to this new fact. Signed-off-by: Petr Štetiar --- Changes since v3: * IS_ERR_OR_NULL -> IS_ERR arch/arm/mach-mvebu/kirkwood.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c index 0aa8810..9b5f4d6 100644 --- a/arch/arm/mach-mvebu/kirkwood.c +++ b/arch/arm/mach-mvebu/kirkwood.c @@ -92,7 +92,8 @@ static void __init kirkwood_dt_eth_fixup(void) continue; /* skip disabled nodes or nodes with valid MAC address*/ - if (!of_device_is_available(pnp) || of_get_mac_address(np)) + if (!of_device_is_available(pnp) || + !IS_ERR(of_get_mac_address(np))) goto eth_fixup_skip; clk = of_clk_get(pnp, 0); -- 1.9.1