Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp187223imm; Mon, 21 May 2018 04:31:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZopm1chln0GhpcS2SaV0bO7JL0eWRykIG0j//pTel0MZ4KGUffs+nYYkY/YKDSdafPRYz5q X-Received: by 2002:a63:aa4c:: with SMTP id x12-v6mr14882624pgo.398.1526902308305; Mon, 21 May 2018 04:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526902308; cv=none; d=google.com; s=arc-20160816; b=w7OvyWt3EY/RpNk4B/dN9/mynphTuL+0tndQ11qcGImBY/gka8QcSwOO3BBS7g/gWj 5AnP6TXINTdw4G3DPJojQRYuVQsu9CM2B4pRyd12n0g0zQdILz1BXsF+CTWOVdLprgBc 8ALhMv5g+bSh2B5LIwkBezJgTEufHmLANsYx6JlIQj4Y9s63q8yVXphB6WZQQfXTSbfB sVSYpIbjS03hjNS9vrF3VS7Xc8yuMr9dc9rrgu0dH9FLFGNs7QCWWjR4xaQUXQf973Y3 c/8Z/L99DlrVVPApeCQh7PeBoP8LOBub020hpZv8T0n73aLinoYna1mk339lXjWMMVhN vwNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=1woFGo2V/s0FTc82HMl5MI3Z3dWGwPuHKnOawErQ7Fw=; b=E1c60Uhk8qD73++JLj6hhZSnckjEMxj7PNT5+kviLIwBt+wLXIlzgD0NeL/UAHG2kv PPYVo6vZ01QaCcygamNKV56V48MXlI6rah9wWjfzyr4LSDNBao75NnkerXwAIi6JtOOl enLJGa+3SUETIsFnIUs/lSALhUoWi9x+7Dl7FvyyTpf9YxPv10ApAH3cQaiCUlV6ujHO BhvdnybCu7I7edfsH8XuNbLXkEH4OfAGZ20pBSkIW5o/RKvXrdVqFuom4T+IsrF8iK92 UgIkVff/PlYHzk3z9T+I1yN5iswGxfRrmMgExUAfqpxwStEWdy4xiStUCYk3NZMV4AI0 +qbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=UKfVhWsV; dkim=pass header.i=@codeaurora.org header.s=default header.b=SgwBdfjx; 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 g6-v6si11326848pgr.72.2018.05.21.04.31.34; Mon, 21 May 2018 04:31:48 -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=@codeaurora.org header.s=default header.b=UKfVhWsV; dkim=pass header.i=@codeaurora.org header.s=default header.b=SgwBdfjx; 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 S1753099AbeEUL35 (ORCPT + 99 others); Mon, 21 May 2018 07:29:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37392 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752830AbeEUL0B (ORCPT ); Mon, 21 May 2018 07:26:01 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F187560C67; Mon, 21 May 2018 11:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526901961; bh=wQ/UNaNp6e46YpY1duJfmTZIKLj7TVgJO1JTJosiWgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UKfVhWsVUwS+EcvlLfdM4VV8H5fA0SMMoWua/z/Qqm6PXRLgHmXMRFw9+KkMWqsr2 SO3Mq2NYhC8k1EQVzj2Aogf6NXPw3zqBSxuSpyQjKF+IDd/C/+X29QXscUxOKU24ew 2UgzrkRMUCvqt+21OTKaRGA3DkNkgis07kO0tn1o= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lx-ilial.mea.qualcomm.com (unknown [185.23.60.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilialin@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 135C56081C; Mon, 21 May 2018 11:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526901957; bh=wQ/UNaNp6e46YpY1duJfmTZIKLj7TVgJO1JTJosiWgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SgwBdfjx0CQZW7/FUZUmUc96YKP8rM/9cSxC0yobpee0S4XLAkz6g3M3e19CuvYZc Xax+rtjJnlY0Hfpvffqj7190Aj6+EQSsDe1hJE57yoNpPJluzW65c0L39j91gbzY+r eEPtMCKyqqB9PMuoZlXl65YWitBxON3SiI+yPisk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 135C56081C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilialin@codeaurora.org From: Ilia Lin To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, viresh.kumar@linaro.org, nm@ti.com, lgirdwood@gmail.com, broonie@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, rjw@rjwysocki.net, linux-clk@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rnayak@codeaurora.org, ilialin@codeaurora.org, amit.kucheria@linaro.org, nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org Subject: [PATCH v9 03/15] clk: Use devm_ in the register fixed factor clock Date: Mon, 21 May 2018 14:25:20 +0300 Message-Id: <1526901932-9514-4-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526901932-9514-1-git-send-email-ilialin@codeaurora.org> References: <1526901932-9514-1-git-send-email-ilialin@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_clk_hw_register instead of clk_hw_register to simplify the usage of this API. This way drivers that call the clk_hw_register_fixed_factor won't need to maintain a data structure for further cleanup. Signed-off-by: Ilia Lin --- drivers/clk/clk-fixed-factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index a5d402d..8e39bda 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -94,7 +94,7 @@ struct clk_hw *clk_hw_register_fixed_factor(struct device *dev, init.num_parents = 1; hw = &fix->hw; - ret = clk_hw_register(dev, hw); + ret = devm_clk_hw_register(dev, hw); if (ret) { kfree(fix); hw = ERR_PTR(ret); -- 1.9.1