Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3661096pxb; Mon, 24 Jan 2022 14:43:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPgN5IYl6RHjxYLrdVJgq7dKGFXs5T39KKr6h5aTciQ5HoBxA72vDUDzULNe45s89tHcGd X-Received: by 2002:a17:902:b206:b0:149:3b5d:2b8b with SMTP id t6-20020a170902b20600b001493b5d2b8bmr15762864plr.162.1643064230550; Mon, 24 Jan 2022 14:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064230; cv=none; d=google.com; s=arc-20160816; b=Dj6dh9AZStK9UsMOvYLApzYO3Zdk4iM9eHVX9LTMlKuKJDqJaXa1XWPwrYGGIDffSN KC5KIC6Thp5TfYDTVL94RL3yU98pJhDDOAy/AfeGZCNI63upgv6dapOQO6kdDpXR2vKT Oa4TCn5S5Q5Z96LmxXjq4tNbwVSuTXSCCZShHxpf/O7H3EKoF6bfC64sP/Mj+baRGNwo U/xiRytWcA2seZ2JBMqcTkMnZI/vk0BSy5ZY/DaHpzglyBmuigh3MBweEhxr2r12JPBy ycVBa0pK77T1HbyYaCjc/IHiDQmJTwxjXOwGTlTy3BQaRLwYOCfPRx0gzu5rvBctBc3T pupQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3IJ8y0mZmv2xE9q83MgRobHqLkaeMkMSZJU4XQuTcqc=; b=tGbl4A7+I0ODZPHSQoNZiy7dfRjItNvXRbxxiop1h2MPDqLbAmW/SYRTw+FAYUuCZl ndUQGGZnoMatH57IvQ2q6M3A4G6yjcbccbwtPSAtnDVdin/j8jMDxsyvxTZ6yMVCvupZ 0V2pgZLSrN2ZWd1XoF+Q/Be0g8fjrHob9cCv7/U9NKKLR8hTufvhD6sqreXPdTUwsjS4 Uq85Rt2MheAsxCjKhs6c+Q/XZzwEt+ogVeX8zlAlK80uUYUUeZ8vu2Op+z651lJQ+WzA xRBTNpSp6gJ/Z20y2bhkzoL1ouN5Ey6yGaXaU9KIy227iHUKFcSlf4CptGRx8s7ui6Gw zgFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EMyIGA3u; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm21si509164pjb.144.2022.01.24.14.43.38; Mon, 24 Jan 2022 14:43:50 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=EMyIGA3u; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355825AbiAXWlt (ORCPT + 99 others); Mon, 24 Jan 2022 17:41:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457499AbiAXVlo (ORCPT ); Mon, 24 Jan 2022 16:41:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C719EC07E328; Mon, 24 Jan 2022 12:28:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 66A9061232; Mon, 24 Jan 2022 20:28:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41956C340E5; Mon, 24 Jan 2022 20:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056134; bh=dZCh+rQmXNsTbp25IWcKPBSby7DdQprMmtkeo9Wg3yM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EMyIGA3utIaJhEXuIporzSrpyFs3apnc0N5YgbR57qf/gToIu2aAbNWmhrbC/CPsF 3d0IyT/D6R5VakEYDMX5+iQYG3aLyBEYOm3EieHbYOrNuoLHS2G/TGjVQq5YaHukX9 4mk9kF4enI+IcVLmVy+FKEk6bB6lXm3zAwNqaOIk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lad Prabhakar , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 5.15 382/846] clk: renesas: rzg2l: propagate return value of_genpd_add_provider_simple() Date: Mon, 24 Jan 2022 19:38:19 +0100 Message-Id: <20220124184114.118767436@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lad Prabhakar [ Upstream commit 33748744f15a110a233b6ae0380f476006e770f0 ] of_genpd_add_provider_simple() might fail, this patch makes sure we check the return value of of_genpd_add_provider_simple() by propagating the return value to the caller of rzg2l_cpg_add_clk_domain(). Fixes: ef3c613ccd68a ("clk: renesas: Add CPG core wrapper for RZ/G2L SoC") Signed-off-by: Lad Prabhakar Link: https://lore.kernel.org/r/20211117115101.28281-3-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- drivers/clk/renesas/rzg2l-cpg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/renesas/rzg2l-cpg.c b/drivers/clk/renesas/rzg2l-cpg.c index 61e7c0c4f3794..1c92e73cd2b8c 100644 --- a/drivers/clk/renesas/rzg2l-cpg.c +++ b/drivers/clk/renesas/rzg2l-cpg.c @@ -666,8 +666,7 @@ static int __init rzg2l_cpg_add_clk_domain(struct device *dev) if (ret) return ret; - of_genpd_add_provider_simple(np, genpd); - return 0; + return of_genpd_add_provider_simple(np, genpd); } static int __init rzg2l_cpg_probe(struct platform_device *pdev) -- 2.34.1