From patchwork Mon Sep 16 16:14:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 173867 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp4090719oce; Mon, 16 Sep 2019 09:15:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNn1JCuHtdWVB4nmUSxHJ9GZsbu4oCBwI1WzbR3DCc+aY9Vw8ZsPUNrnSljyKv0Vg5m4So X-Received: by 2002:a17:906:6d52:: with SMTP id a18mr853937ejt.56.1568650519065; Mon, 16 Sep 2019 09:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568650519; cv=none; d=google.com; s=arc-20160816; b=insnZz8fWLSV3YDpIxtS4dPC2XQjr9NLVKeQycaNCI6BeZwuPATtnPEFNxCH7/tO/7 AEciLBrOVN5cmQUNhAQ3tYMcpmN4VF4CxbdgANYQIrJ7qhpT7oEqrzcNGPyOINTxnPjY JSukDol3p+KpCoBehn0wggydo50QRR12jfE2I174zIWL4PLbB8DiZYaJHZmrOibRC7a3 wvuzYfgM9uqmVlN+dIYqj3jdO7Fxu1t5LVH/fJfGd9iA3u9w1FUz/GfQ0a2xuh6Bspn6 8gyvGML6lkqrpRwnAfbKz6QZ0gdF2vfKrEKGJEYJQof+7qmQ0DOYr6dUu5cULbUXHc79 ohBg== 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; bh=RtuYujDQbGoE383NaOTW8yNTTYMDfvcRIoYrv77xBo0=; b=ky6bfL2DdZsuzQJEgA8CzuXoAg7guQzLJunUMDblzdnG+WXnP2teDMUBZb7rdD7wVV DekwpNbYXfacYaKQH4jM/otgnjb6oGphxNn9q33Cl/PN4MTu0d0AhZX82N6937vGIOD9 04r/w3JTlbGd6SETOuac6HzBkOqjkgHbRdhTEx11cUtMRjHnLkCoPQVOHGKsXe7ZV+3V 92ITIDQuZ3YqQyot+yeA978MMvCJPUgGbKndgZkiRAauLAqwzsp87t5CQpJGrf29el9F /l3qa1sqBjMl83Tqvc6K0zUf3xv00zUMZTVyRA5pu8dS6BIv6585E2fimiB6RiXFiRYd 7Vxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hj6QoIN6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si4009663ejw.308.2019.09.16.09.15.18; Mon, 16 Sep 2019 09:15:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=Hj6QoIN6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389746AbfIPQPQ (ORCPT + 8 others); Mon, 16 Sep 2019 12:15:16 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41293 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389724AbfIPQPQ (ORCPT ); Mon, 16 Sep 2019 12:15:16 -0400 Received: by mail-pf1-f195.google.com with SMTP id q7so178233pfh.8 for ; Mon, 16 Sep 2019 09:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RtuYujDQbGoE383NaOTW8yNTTYMDfvcRIoYrv77xBo0=; b=Hj6QoIN6KZ6+DhiumykPCijqElZfOah/NzphYnS7V98SDfdJQfhOakb9NSOsbAz7ME 9PmGP929SZ56sAB1fQ17iyymu1/w7wo0r8yJfKfzQwLPCelP2u+rV01jXg++B4kEGtVX nL9TljiPJiRSyfMXWTl1ZHFj45Z+zy1ID9LsuXayael/sHHLjGIw4w8hOycBpZ74Wtb2 ga/10z3Bz5tHOmdC+oMWG3LFl8/UN24QIAemzNhxmSY01cbgc1ReYhF0dv9ykFP89zxD YHzeCDmMnOkqD57pJsZKTPpr3ye2+7dKPkFDkPnj8LiApv6XvKqiujop9pXqJbeWGip1 SvKA== 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=RtuYujDQbGoE383NaOTW8yNTTYMDfvcRIoYrv77xBo0=; b=D1+4FQqsyHMoKclMixjNxm98ei+QDAfX7C5uS9QCoVMhNcJ8SsqyNhi/LRzbBIW/kR DQ+Y1eImAuiL/ly1CmoOOucfu/dab2WHBmdMdqzaYgouCReeqM2JkDNBlNTqw0piZmT/ VaV3Uzrr1HDeB0ls+SgoNDWAZQ2o+oDL4H86ywtglGCM5V4EovELplTAMLxDhkoOeOnT htrOes0Tg2PMVaYpY/FVA7m2ial+MgowDni1kafXI8T3KDxcMedmNuD7h7KYmUVbgvbj 9sKgqRinjPO6qjYvIF77//Wz5xnU8tmLq+dNf7c4W5sjk/+PbY9wqx3Zis4Q3ihWhMZA Aw4Q== X-Gm-Message-State: APjAAAXdNdY8yvq1UDsV4s6I9RJ4Sv4HjqSKlGkT6dfe54oPhADPUjz+ BQD4f/wR0hZPyc2fDPCBQI6V X-Received: by 2002:a63:10a:: with SMTP id 10mr57256448pgb.281.1568650515328; Mon, 16 Sep 2019 09:15:15 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:90b:91ce:94c2:ef93:5bd:cfe8]) by smtp.gmail.com with ESMTPSA id h66sm614134pjb.0.2019.09.16.09.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 09:15:14 -0700 (PDT) From: Manivannan Sadhasivam To: sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, fisher.cheng@bitmain.com, alec.lin@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v5 3/8] clk: Add clk_hw_unregister_composite helper function definition Date: Mon, 16 Sep 2019 21:44:42 +0530 Message-Id: <20190916161447.32715-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190916161447.32715-1-manivannan.sadhasivam@linaro.org> References: <20190916161447.32715-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This function has been delcared but not defined anywhere. Hence, this commit adds definition for it. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/clk-composite.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.17.1 diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index 4d579f9d20f6..ccca58a6d271 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -344,3 +344,14 @@ void clk_unregister_composite(struct clk *clk) clk_unregister(clk); kfree(composite); } + +void clk_hw_unregister_composite(struct clk_hw *hw) +{ + struct clk_composite *composite; + + composite = to_clk_composite(hw); + + clk_hw_unregister(hw); + kfree(composite); +} +EXPORT_SYMBOL_GPL(clk_hw_unregister_composite);