Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3638588pxb; Mon, 24 Jan 2022 14:08:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVGzAQ3CFMU+aWiWAok47FgvJDyBv8kWB59+lp/z/t+TiJzx5r2hE4cYjF3sjEmIBRvoZB X-Received: by 2002:a17:902:a502:b0:149:c5a5:5329 with SMTP id s2-20020a170902a50200b00149c5a55329mr16062991plq.164.1643061999001; Mon, 24 Jan 2022 14:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061998; cv=none; d=google.com; s=arc-20160816; b=pP6+zPlOUxDdIyoloFZvy9F5BwzEoX2p0llPKqIgn44g5cUWccopMi7/BQVOmzRPie LYCNwIehok4g2erWucZvtQwUHfXvevbLNGG6dK9K9l1lx5T8gAFJyeHDTBaQMY/LayOz N+nlxoAW+ohLzi2NB5TDsMv46edemlnsmsHnCEi0l7Bsd7OvBIT4KgvDWwgMSYifqY7g M6lYHIsHBuie4ChSrXxIC5UlnDYL5RH9poreWOsqJDH1aXRBiB4tpcnqrDWXpzat2ysV Uxicyw3jqfQfKmM5SzdYdsJNIEtbmiql6Vifben43z2PjdWEsXoesLjFHf6FUd4Vi2El 2pMA== 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=j2/TVC3T++2Bps6ezOjlMv4pfWf7IFzHoeVtt67wsW8=; b=q2NhD4WiQAqFUOeYc4E3AmH9pmY5owYNqcAqeDaAOseK3knzgCu/dC+gcn8W/2y5q5 4ItRzw5hmwkf3Qf6p6X/feEcmFnNFvyIBTyDj34gRNnKcG+zUaO8RpvsB5Mahj+31AQu 1IXz/YnzlYkngbDMBaHyRHup7Ag6VeSmv5/ZPRBqFVs0jMYGPBaMc7Xt9vwRays1vlOd qaxDS8ws/OjAqMSCUl8rNDpnrc+Q0gf1VPeddMjjYlotcbudC/N9olN4bTCogCP+Vd+s RXCGpRSilNJOBdDBjVKZajv2FBwke5tOiVJhi5/wn8+kYHCpThYb+cLWcH7rvpjF6KUJ VcSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qvOMz2ni; 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 me15si585694pjb.98.2022.01.24.14.06.26; Mon, 24 Jan 2022 14:06:38 -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=qvOMz2ni; 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 S1575140AbiAXVvF (ORCPT + 99 others); Mon, 24 Jan 2022 16:51:05 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:35796 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449526AbiAXVPp (ORCPT ); Mon, 24 Jan 2022 16:15:45 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 88CAEB80FA1; Mon, 24 Jan 2022 21:15:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA95C340E4; Mon, 24 Jan 2022 21:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058942; bh=zBpNwWKSqsso1OByKSC4HcnXg0qiDGwuZ+0URWSstR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qvOMz2ni0JUC9fmp9eTnnhM3yWbO2iSo8UnaP2EEsHG/jE3H5a8X00k7VeRPev02z Akh9D8MZSGCEClY/sPXOSAlxS0/q5rYmJpzGXXBi5ZE33CugKmo7nbHjgFOexu/Zfo mtkVZCmFavhAtBtsrm8Gg7B1VPXgR0ZCmr9B4/Vw= 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.16 0453/1039] clk: renesas: rzg2l: propagate return value of_genpd_add_provider_simple() Date: Mon, 24 Jan 2022 19:37:22 +0100 Message-Id: <20220124184140.528054004@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 4f04ff57d468a..aafd1879ff562 100644 --- a/drivers/clk/renesas/rzg2l-cpg.c +++ b/drivers/clk/renesas/rzg2l-cpg.c @@ -878,8 +878,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