Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp484111ybx; Tue, 5 Nov 2019 00:26:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxH4LFdFanBQW/qgXbcVv9u0a47an9kobN1+ZgY+uHWLdYfYfEoNBXtcXaEeOrXgHerI0Dp X-Received: by 2002:a50:ed12:: with SMTP id j18mr6171789eds.172.1572942376084; Tue, 05 Nov 2019 00:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572942376; cv=none; d=google.com; s=arc-20160816; b=Lb/cqL94PC/68lyynkb76ylx9F679zitqnKYqJ1zJuoUj8T7m1s1eD+TKMv4lAovZt 8a8exjfvis1YJLM4y/UcSBnSBY6eptbqEKA9AAhq8AhNV4BcvSXxFZxo3/8X5YGGE1Gk ty2cy5XPKcYvngVM9nQV/xzHE8vulpELv147jInpYUfdSjXJVpG7VrZA6UKYFWpHMCeq C60leFERUaLZzrXk8WArMEDbe5CaPzVPXBY1N7T70dhaGBQtNQroLlqpZq2SBp7Ku/vh +vMbzr2bIB5Vg5NgRcrayunePuPhjuwjLfjX1LdhO+f724EGv4PlsGE1AMi1xo0pJc95 w20g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+yZGl0XTUJFnBIncZkbSNKc2+2vqsiJzQfis6dIemDY=; b=abSdRj/F+7Kf759gAnMryuWj1Q3rYfUBs7QHiJq45WrA/lAeuWlkhVVF9p4bANM4lj 9WgTNweVbshiHTFZwiDsQZ9mP5pc1cP1OOQLp4OPpwiuRG/+nGFGBCYGcyB2W+FQzrvw Pxx14OqZyIWbhmyfpFId/vidKQTQO8CnugbWhD/0KQK+0g80mkNBWERw0IAKM+vp9VoU EctrP7WKO6MY3Ft8j9kFYIoMQef7zebl0v5zXXQI++CTm0OhrABkVfu8n8d44baatxiQ diTWkgk2VDGc1IzJwF83AS5L4tWUCGPty7/eIf5/35sg+xBrESz0pi9ZnkT2TCqrtPxo LVbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E4swKQdx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16si14119519ejd.306.2019.11.05.00.25.52; Tue, 05 Nov 2019 00:26:16 -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=@linaro.org header.s=google header.b=E4swKQdx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387954AbfKEIZM (ORCPT + 99 others); Tue, 5 Nov 2019 03:25:12 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43310 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387843AbfKEIZM (ORCPT ); Tue, 5 Nov 2019 03:25:12 -0500 Received: by mail-lj1-f193.google.com with SMTP id y23so9831637ljh.10 for ; Tue, 05 Nov 2019 00:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+yZGl0XTUJFnBIncZkbSNKc2+2vqsiJzQfis6dIemDY=; b=E4swKQdxg99a6Sr3wL+9BfqZTNESaOvMmfCCssXkVyQCJx+FO04pH01TclCxthRcTk MrMCbLBEbEBUEQshEn4IgR78+mENEd5E3jaUM2Yais/4AGqwDEqHeK3Vn+l9g4FgVOul I6+OJZz+WEt6v6E+7jyEvyzuD2nCjEPHF5FGtJhSbYtIeRGYhylvSC2A2s41X6wSQGFE BhRQd4bv4arYeAWAhRc+G8br1yVfFxzs+O42tHDsQsUQXcbG1DwQ4/e2r56b9luV8wAP 7K8i0BQ21fQAgaLKCZhWj/0yrRUtJCCSZ+uSO+gotww5G8dnHXLqeC/dy5CNuv5pliTf An+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+yZGl0XTUJFnBIncZkbSNKc2+2vqsiJzQfis6dIemDY=; b=QgidJMIiS0qURM+oQdG3r70rjJIweyF2Lt9TnahjPDRzbqwY5BzfwZkWfQ1rxsdOF5 JX7PhzF+rRbWjxTTAvkCnqB8A7DIPmrKn6FDqbiqA9X1L8ICk1CxkHXvDAsAmQ4GZriW 36B/ZwUNEGfijvIbV80LublaqHY0/1egYMA0aSFw9I89yfmig2vyIjugl4wJA/36i0+t 3r1I9JmnNLLqjLJ0rw4LFNmk7X7lAG3bxKtIt9pf7WeeQcq4exTS8dvIHbTeu05BZBTl rIjaS0UfUIzKoPJ9z2OL0DP2naysxHy7iiAgo7hUDSM5ibHTiiCgIwFOFx6AIuYvY2ys f+KQ== X-Gm-Message-State: APjAAAXBNRUZoj9016KcQ2QI1G0ObnfFinhW9y34Lrm5ezM8mTssm4Ly Ah+rSrMSkmJnTHU8pHN6HewEwSPEYDO/L8MWUtrz3A== X-Received: by 2002:a2e:96cb:: with SMTP id d11mr15334688ljj.82.1572942310596; Tue, 05 Nov 2019 00:25:10 -0800 (PST) MIME-Version: 1.0 References: <1995139bee5248ff3e9d46dc715968f212cfc4cc.1570520268.git.baolin.wang@linaro.org> In-Reply-To: <1995139bee5248ff3e9d46dc715968f212cfc4cc.1570520268.git.baolin.wang@linaro.org> From: Baolin Wang Date: Tue, 5 Nov 2019 16:24:58 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle() To: Michael Turquette , Stephen Boyd Cc: Orson Zhai , Chunyan Zhang , linux-clk@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, On Tue, 8 Oct 2019 at 15:41, Baolin Wang wrote: > > The syscon_regmap_lookup_by_phandle() will never return NULL, thus use > IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). > > Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure") > Signed-off-by: Baolin Wang > --- > Changes from v1: > - Add fixes tag. > --- I did not see this patch in your clk tree (you only applied patch 2 in this patch set), could you apply this patch if no other issues? Thanks. > drivers/clk/sprd/common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/sprd/common.c b/drivers/clk/sprd/common.c > index 9d56eac..7ad5ba2 100644 > --- a/drivers/clk/sprd/common.c > +++ b/drivers/clk/sprd/common.c > @@ -46,7 +46,7 @@ int sprd_clk_regmap_init(struct platform_device *pdev, > > if (of_find_property(node, "sprd,syscon", NULL)) { > regmap = syscon_regmap_lookup_by_phandle(node, "sprd,syscon"); > - if (IS_ERR_OR_NULL(regmap)) { > + if (IS_ERR(regmap)) { > pr_err("%s: failed to get syscon regmap\n", __func__); > return PTR_ERR(regmap); > } > -- > 1.7.9.5 > -- Baolin Wang Best Regards