Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1816424imm; Thu, 24 May 2018 01:05:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHJ5HK5qwRk3c9JSMysOMCJ4Lb+WjKXX0lySh5n621Fq2JYF9ieNuh+lyNXpO2n8hVITLl X-Received: by 2002:a63:9a49:: with SMTP id e9-v6mr5101024pgo.251.1527149148340; Thu, 24 May 2018 01:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527149148; cv=none; d=google.com; s=arc-20160816; b=Lc+64ojDOOwOgyoOqH5ronGM2qqujykNdLmuFQ7kBrQAybiYm2NbzH6igNCRv50G+5 MXN1jHEJ1ZGFE0SsqAeeFMb8H21jVrQPCBifkryAS6GlGjv8o3circy/IxU0vOIFHZaz wbwOPqEU5bebp5knIWkKjxIPHOWp56+lPcGCBZapjTB2+P6U6bQyf/lBfNXjMRxuAMry BsL/v7xt96/8Twke2GtH2XsAADVvLGmIg1jYb7hu8OEXtShg0p3QBZsy9lducmZEVc7A 8sJMSBeO6hu/b9hBEAS8NR6FcuwPPrVuxJBc4PJrHM4KceOcVp20KAUV4dd/dj4Fqdir jQuA== 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=mguBbE3JNVvtdkx37YGj3cNvruDdSr75ZMZFu9SD40Vu//6U0lJGFt26SPEVsqczkF N9+VSVmULiX+anClWkDD3h3BXKZVZu2FyupPJMPXSLRydIl3OhStQuRo6mmChwSfWrjD GtTWgVFteK5XJ4AZzGTkRvzWPE98B6YZby/SKGsy8fDlkdy81DhjIIZZzyVJe+uUl4lZ keuMQxmEgmbqum/LqKqSMWqZZyhAnrLbTbsuMj7XrBdA4WP3cRYPmZmcoZJuIndE+u+t biMBUOspIuy+ErpvTcsS+Hy5vLgRvRegX39IjdsWFs4Ahw/oYF9ajctqvogjY6yoj79X c8HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JbI/GR5T; dkim=pass header.i=@codeaurora.org header.s=default header.b=IIm3AXQJ; 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 k85-v6si19844589pfb.321.2018.05.24.01.05.32; Thu, 24 May 2018 01:05: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=JbI/GR5T; dkim=pass header.i=@codeaurora.org header.s=default header.b=IIm3AXQJ; 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 S965359AbeEXHwc (ORCPT + 99 others); Thu, 24 May 2018 03:52:32 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52884 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965223AbeEXHuh (ORCPT ); Thu, 24 May 2018 03:50:37 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 47A2E60F5F; Thu, 24 May 2018 07:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527148236; bh=wQ/UNaNp6e46YpY1duJfmTZIKLj7TVgJO1JTJosiWgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JbI/GR5TzVkphs14/sJgZWsS3WJ/kUZu1MUZKPbufTjy9NaPpnGjDiLGcVk0CrfT3 IuAD40V8nKbfaCqpI4K1UDlltovqAjyTFC629pu0KSsZHEb98brzaOhcEijljESA1S wNfRPle/9PmpZLITM3y9h7Sw4PIO7D/aW9pMC7dg= 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 35D0560C65; Thu, 24 May 2018 07:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527148235; bh=wQ/UNaNp6e46YpY1duJfmTZIKLj7TVgJO1JTJosiWgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIm3AXQJqvhmh+ihldRIsr4J4/nr4owv5j5ePuEJkFgFaAaLoxEl1cXAvMnZbnWR5 nlz/pTHleS9hDHvkmDUv7nsRiLm/xMUOzvyynK3btOOaRDmC25aHpZJf+o63a61O18 8RDsozNkdxaJgVWH8gSZPJDPsNAEN7Bgpdczh2F4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 35D0560C65 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, andy.gross@linaro.org, david.brown@linaro.org, will.deacon@arm.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vireshk@kernel.org, ilialin@codeaurora.org Subject: [PATCH v12 3/8] clk: Use devm_ in the register fixed factor clock Date: Thu, 24 May 2018 10:50:13 +0300 Message-Id: <1527148218-16540-4-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527148218-16540-1-git-send-email-ilialin@codeaurora.org> References: <1527148218-16540-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