Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp37451imm; Thu, 14 Jun 2018 14:57:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKFR8bxpo/H1SwCH5GBLeqOZqtWCSBlSSrSfzdeGRXv4NleuA/otfs43IDk04yBRXUqvx5s X-Received: by 2002:a63:7a11:: with SMTP id v17-v6mr3742840pgc.97.1529013457050; Thu, 14 Jun 2018 14:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529013457; cv=none; d=google.com; s=arc-20160816; b=AH6EBRwVWvgnuBI8fBD96NzZJPT0Q2BcOolxx7GBcoaQyFdKae0Qc/jHszHbTINGts b1tzBAYZR8wgCX8905plMQgjIirRA68XAlffXk3XxpVz7oh2ENlHp9upcmZutT91gWtQ ODoWzNFesdV3aiLSuBNrrr6XjbHy95YCFqnu/VhvljD9hJXtkvY7c4NAbm6ImlJb46gc pnqvxJ4fH43owjzWkSb4u/I9I0QUG7zqjRlfS7KrRHH3Yh0E1Ru1kwloh8XRNajCDr1s W3wePLoWXPV7rL1ETKzmzHAn5flvHLXXrfAlsqICAuXo7lA7XJfDfwU39tV2gZRk3q6d r3CQ== 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:dkim-signature:arc-authentication-results; bh=7oy/PpN2lfqXCp6xvaoXyWxkxv3vHGUHRhCD4XihcPc=; b=R/JicF4BV4mxmGzI3EjoEC742zLxzAJp6sPJRdmvi5HXD4WaLta4Fg+5w/OAq2ODt5 QOtxp3dQdI2W7KfUzEXfpdD1nAtydM6svOOkGAs0hZvsdYPcNwRvJevrWfF3ycqM7NVI 3065PREhp1y9WrOipMw70p5JTH1oe42iTxLCPO89e4roafl2aylepkTzlXFCa30B4tan KqKGWZcN0UfmexP7Jfh7qE/3b6Yam7G28n0SSUcgOsWRX7v18kUL38TqdlvzckBcGuuY VXyNGf8OBnplGmJ/E39uNlf60GX4qlkTsmjnA6F7K08cSKf6Follry2GJ3Axs1n6EMSb EhOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bq33kkoT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si6181445pll.158.2018.06.14.14.57.22; Thu, 14 Jun 2018 14:57:37 -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=@gmail.com header.s=20161025 header.b=bq33kkoT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965016AbeFNVzf (ORCPT + 99 others); Thu, 14 Jun 2018 17:55:35 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:46270 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964907AbeFNVzW (ORCPT ); Thu, 14 Jun 2018 17:55:22 -0400 Received: by mail-wr0-f194.google.com with SMTP id v13-v6so7914556wrp.13; Thu, 14 Jun 2018 14:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7oy/PpN2lfqXCp6xvaoXyWxkxv3vHGUHRhCD4XihcPc=; b=bq33kkoTNjB6qRIg4bQtbTXI6s2lfwfMwt31I4ubOKBfIruq+PXPS7Ry/vP1hdK1Zh +Nj4g/TFhoWVGBw+R/LYJ3lZlzrFmLm29k/9cdJCMiA0bG130RShgk6mfjKkV6lsuqJJ yZ2RNikTj7bA9lpK0X26KoB9PhN8ha6mcEt7atdIzQJlbhEt8D81Gxq8ZhS5sWls0yux ia2wkeFxNdiwLKS+Nw/HZUTsFfOpTtNAL8SmBNnUx/jjW8WVrQxO7zXKAAfOhmzRoCyc jdAFkJieNgqoerR9qQVYdfyHHxGwLQHXQ4QC3D7XAO/gAblhttxdUZeq0q5h4y7gLS/F XTkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7oy/PpN2lfqXCp6xvaoXyWxkxv3vHGUHRhCD4XihcPc=; b=LWbPXy/iZibwjI+gSncJBJzylYyx8tjz4r+zVjQPiidIhXsAVjbOdai7xBSZvoabRo glrbW27mQU6n/692vhS/N7k3O99pxyXempppY8MDMxSIStE2vdkqumRk+CWDo8cH3xB+ YpmAj6IRRexcRntGeyHY8UH1UTnkbo2nvwlWOWGTCLRtenC0frOI9A/DC0PkO6c17Ex9 J2GqbfmOHn25ivOah9qKTtOshWpAJeOwgsnYjQ/jP9lZ1HTwsayFWY9iW3x8fYESheQD zpLlhpZa+wTfyfkYR6BolE/fpuNIi32AcEUoUK2mlTEooiJZ17dvKZDKHhD4s55VSp+T t//w== X-Gm-Message-State: APt69E14tPqsjHInS91vD5bGOFrSlKUv0NP+OyNIL5yW7Xg5CaouRCoC KZKE5G7sWK0qz/j24KhxCZA= X-Received: by 2002:adf:f482:: with SMTP id l2-v6mr3936698wro.259.1529013320274; Thu, 14 Jun 2018 14:55:20 -0700 (PDT) Received: from gcc67.tetaneutral.net (gcc67.tetaneutral.net. [2a03:7220:8080:c00::1]) by smtp.gmail.com with ESMTPSA id i76-v6sm285367wmd.20.2018.06.14.14.55.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 14:55:19 -0700 (PDT) From: ilia.lin@gmail.com To: ilia.lin@gmail.com Cc: Ilia Lin , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Andy Gross , David Brown , Will Deacon , Amit Kucheria , 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 Subject: [PATCH v13 3/8] clk: Use devm_ in the register fixed factor clock Date: Thu, 14 Jun 2018 23:53:50 +0200 Message-Id: <20180614215358.11264-4-ilia.lin@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180614215358.11264-1-ilia.lin@gmail.com> References: <20180614215358.11264-1-ilia.lin@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilia Lin 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 Tested-by: Amit Kucheria --- 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 a5d402de5584..8e39bda8e596 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); -- 2.11.0