Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3150543imm; Thu, 17 May 2018 04:20:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8dHvQHtCYJ7CfhfNM9wvkr72LnbQ2/ADdxSggNtAMG6Yal9lM3KtG3mnt4goMSVbSgPU7 X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr4912161plv.176.1526556032066; Thu, 17 May 2018 04:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526556032; cv=none; d=google.com; s=arc-20160816; b=OpX+ovOeMIlND9HlczKInIaI1MKSsxcQ1dzkXrRMPe0AjMPdp3RSo4hZNFkyXYvoEW 5WONYQ/16GybP7S8aY0+Cq4xN2zHGHNv0qVGZZpzsrmlc78RoNVcwg86V8Oit6tY+ILE SPWf8sfuIq+tloZwPlvnVK5NSI7ov1U6lHyiF9bTfFXzw+nqGp2US2isHxXNqgYWuuv7 eUYEs8qhY2BD1sjxmhTlZklrGkujTPXfBkfYfVlW1x8mu9WzFHw/iZzxo78Qx3WmTyLO Anp5wuP4Q5iF8cgYzO5RjIVOk8RiksGzBWymkXQsgXediv2xSzoeMpvD20yTDPF0cLFB bkkQ== 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=KYjf23or7LStNn7OFxNFql3k/knj99if1Z8LeFGV7YS+uvO6IRmBw50Wvztm1s0TcD Ot9g/yd/6O/OFN0N2/N/uxKXvoPaBKngM1XOUsOZZhWhHjrn2gRwPWKPzg07b0wBlqVR SzX4lcIULPMKj+5e7THLx2zclb/6MjhvFokjlogAX7wFnpuwQnyixZVMc19DEzOBd96u 0tMJkbs7P+k6AJx5xR6mnkZ6Mw4+Bvy7XOUs76+sBnvREWvMGVOBK1fYPMSghySOJlxp zYU9YSROmETIXHYkCmhqWt+fuSjg0yQi7IUDzZn6uO5OC/3xPs5i8qwCUzhaExw8lyN/ thjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=b0hs3cOS; dkim=pass header.i=@codeaurora.org header.s=default header.b=g+SxIAR3; 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 j12-v6si3912570pgv.412.2018.05.17.04.20.17; Thu, 17 May 2018 04:20:32 -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=b0hs3cOS; dkim=pass header.i=@codeaurora.org header.s=default header.b=g+SxIAR3; 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 S1752139AbeEQLTv (ORCPT + 99 others); Thu, 17 May 2018 07:19:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34226 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbeEQLTm (ORCPT ); Thu, 17 May 2018 07:19:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 626D260F8F; Thu, 17 May 2018 11:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526555981; bh=wQ/UNaNp6e46YpY1duJfmTZIKLj7TVgJO1JTJosiWgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b0hs3cOShoYneV8QeN1FVtkLRYxOBH2Vc+EEcBHHC9NYxzfrFfK2FetxvmQ7Hs483 Jm66n69Ise+enIeDfT5/vm3K3ygclhIdqzmH4vVRqIrHppwF5Vx3iUDDmsAJRAbQea 6WHEpgswPRXlyL+75M3EjfA3quyecP5yJAaUDwbg= 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 00A3160F6E; Thu, 17 May 2018 11:19:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526555980; bh=wQ/UNaNp6e46YpY1duJfmTZIKLj7TVgJO1JTJosiWgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g+SxIAR3bBgQDbpMrfG4j1RkouaveWv0JXmWgXkfvRjwDiZribXue63exnlghs8cA xxUFuCk+50QMPY5F7KHLe+TsO7f9o2USyM1C0e1SmhKeIGKfSySf3kmGAgC8alNXvO kruuQ3Ln0NP+VqfxTR8mkbwzNSX8VACqym4Ndqec= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 00A3160F6E 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 v8 03/15] clk: Use devm_ in the register fixed factor clock Date: Thu, 17 May 2018 14:19:03 +0300 Message-Id: <1526555955-29960-4-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526555955-29960-1-git-send-email-ilialin@codeaurora.org> References: <1526555955-29960-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