Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1675457ybm; Tue, 21 May 2019 19:10:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxBCdyObeHK+FTtdVL3FzPNpx51rdHzW+2XNMEPUzqlxOpIaTHwhx2BSm3Xc15uCbMru+u X-Received: by 2002:a17:902:714e:: with SMTP id u14mr81207835plm.218.1558491033901; Tue, 21 May 2019 19:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558491033; cv=none; d=google.com; s=arc-20160816; b=hVjwINhNzqKfYKW+2lwjoDQ3Ms4P1rDFLO/PEZn3b43lJxDLmFEDYZ84Q3oLEcqtFX NnYZ5h8OaOlnpcLYYY9IlTH8Vh2DZQgn16x/UU8FV81iGbRsFX97JJh8VUScxnFYdYoC ayM9zzU/pvPtdKZGkTsm0kraguNFG1m9Yr53NxsI9A5+5ITy0J8nxXWgZGCih3tfpTme xxhwKSQP7JmYbMIn7Wa+BFhVE69/7waDnhamaMzGOQHX5SXb2cf+z8QR5TDCMkP8wHP3 871Ej4sNP88tCTEdfiqE4dPMwNzm748iRyijkjB9USbB7D/mPoR9aWjR4bjqCnTroECN 10rQ== 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=j9oGlqVZ7a7UoMA0CZ2Nroq/tcaCiGqxcLR++VFFSBA=; b=EhybQtMiRayQCTqNTrHS4WZV8oamLEtJuJb627FXaVp3/lr9EI08IjMnFxtMZRkHWH vEDqzya7omWeu4a8d6M1ZUsw0NWFwkzZT7ZX17BjEmeOb1Xn37elzn7W/kG9VEGxInSq kzsZye1Hn+Hme55pZGfx13MH3wEqVsKMXW1niLXYuxjeMQAKKqk6wWRgibwBBW7wLAG2 BrrJgY8RHe1PETi+agDpplH6c8yrBJZnGb7nCnqqLfjVDUbFPIi72op9hTqqmPJBMggd /aOtxDIjlwU6GkqCwuZJAZXD0IFVqaBsiDY+xP0IIhsCsXpHygPtUKNMptae4HNN+Gnu BwIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ONJRToR0; 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 i8si7050338pgs.220.2019.05.21.19.10.17; Tue, 21 May 2019 19:10:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ONJRToR0; 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 S1728358AbfEVCIh (ORCPT + 99 others); Tue, 21 May 2019 22:08:37 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:39303 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728099AbfEVCIh (ORCPT ); Tue, 21 May 2019 22:08:37 -0400 Received: by mail-oi1-f196.google.com with SMTP id v2so409763oie.6 for ; Tue, 21 May 2019 19:08:37 -0700 (PDT) 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=j9oGlqVZ7a7UoMA0CZ2Nroq/tcaCiGqxcLR++VFFSBA=; b=ONJRToR0Ufufr8MLkh4tEc7UKOyBGQXKr5+9qFh5lLqj1C7LoV/NLE/y9SNENZHxgm zbSIfKqhJ+Q3mRZo+ST9ZdoIL2S2H8VvKGC8DKpXMJh6gIiEMpdPPFN2dS2ysL3rajq3 WsKuhvy9PmcISqXiM+zx5O5IivZnYcbe9ShGqzDfqyqIbe7pKwjGnZRtxBynjS0CylsG jSQ7+UDbiEDkqigZDr+LkN0ZsQLi2jqb3LW4GC8zW0v0ORwInRF+s5YZ6G/PXkYxsDp3 gtE88kJJvDUouBCEhsKv+JsWcopAKwkJ6k+mMwzTO1llAM1cYqcKHHenjvlaLoZtEkCd b7Jg== 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=j9oGlqVZ7a7UoMA0CZ2Nroq/tcaCiGqxcLR++VFFSBA=; b=I8uyKTQqzYshIHnxrIC49w/iEt4xADO0ludNJfUORO/dnuVsYArD4UbF+y68NApoRm QABLQsx8EdnRoq71MOY29GG/+IR8Uz87Izr+9noh61helyzAICxn/ZKbeeAGG2hs/l62 tJabn6swqZ1zL3dGmo9K12ug69ke50avdeqKIuf0BuKBbpSIs6f2hnmqZCHHL2rbSuus Lb03hrLLzrVXEgitasWBcd2syE6w57xVGeyrStwXHs2ZtnVztgXdVmAk6OiDkINGeCCN e+HyO0ujRdeTcH8CnVyCBLduokcTegyF3yZW2JNEAW3Ug2GWnQMmiJah+rdnhmKons8P rypQ== X-Gm-Message-State: APjAAAXfOXK/7zSaID8UAG1WUL74fK/Unua144aWauz/HOdYToYKpLLd ECGyjA/PSVXK4x30xzt6j07MFuTYQp2NATgWPydgLw== X-Received: by 2002:aca:d8c5:: with SMTP id p188mr5568115oig.6.1558490916817; Tue, 21 May 2019 19:08:36 -0700 (PDT) MIME-Version: 1.0 References: <20190522011504.19342-1-zhang.chunyan@linaro.org> <20190522011504.19342-3-zhang.chunyan@linaro.org> In-Reply-To: <20190522011504.19342-3-zhang.chunyan@linaro.org> From: Baolin Wang Date: Wed, 22 May 2019 10:08:25 +0800 Message-ID: Subject: Re: [PATCH v2 2/3] clk: sprd: Check error only for devm_regmap_init_mmio() To: Chunyan Zhang Cc: Stephen Boyd , linux-clk@vger.kernel.org, LKML , Orson Zhai , Chunyan Zhang 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 On Wed, 22 May 2019 at 09:15, Chunyan Zhang wrote: > > The function devm_regmap_init_mmio() wouldn't return NULL pointer for > now, so only need to ensure the return value is not an error code. > > Signed-off-by: Chunyan Zhang Reviewed-by: Baolin Wang > --- > 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 9ce690999eaa..a5bdca1de5d0 100644 > --- a/drivers/clk/sprd/common.c > +++ b/drivers/clk/sprd/common.c > @@ -58,7 +58,7 @@ int sprd_clk_regmap_init(struct platform_device *pdev, > > regmap = devm_regmap_init_mmio(&pdev->dev, base, > &sprdclk_regmap_config); > - if (IS_ERR_OR_NULL(regmap)) { > + if (IS_ERR(regmap)) { > pr_err("failed to init regmap\n"); > return PTR_ERR(regmap); > } > -- > 2.17.1 > -- Baolin Wang Best Regards