Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5760763iog; Thu, 23 Jun 2022 05:00:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vkST/Vxr5se3UHHtt7fUr3lPQsuy2M5RuokUAtYZzak//6+u91AeFOByP729rTNL+dAROA X-Received: by 2002:a17:907:7da4:b0:722:f358:926 with SMTP id oz36-20020a1709077da400b00722f3580926mr7135339ejc.11.1655985624100; Thu, 23 Jun 2022 05:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655985624; cv=none; d=google.com; s=arc-20160816; b=So95S6pju2rjF5pmIn9V+qtkFFoldGS8mmyuHTPV7CjMsRNJhE0/0p77B5FL8vM6e7 NkH1m5dRg2L6CPGvPUh1lBy8iR5/67UmP+Bs0ceRHCzNnWa6HNPDe5RJudGWMmQgUJKq tyw2TBCh/Vh1u5pPsorv8xZ9R0olM7W6f3fJncnb72saVZ937quywDHxjOFuSbaKX7/w dWH90/2ep5Ncww2/Q/s73lYDGKgzpe9x2+o/ieAc/RQJmXLlGwn2BuVrb6U5+dc1MKY+ wJKGA74DgD9UQK0ydxlL/nOmHwYkAKiwQpETBMt91ySPUBcTWJBRbvg4gG2cl4dntfO0 Q/fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ChxODK/6SP4cCHJznveuo+bfhQE0icQfj1CH16rpkOg=; b=d8gjxzvyLxm1R1pS9/Z1n5nEwdjo1EYdOCqgFX5NqEemFsifwGgarXIruQnoXhPpMz W9E4idULpmGaYPLKLxpv/t9gtw/EjV3Swp05qEQYl8oTvTLwXewRH5uUUTpsffNsccIL 4o8a7JHESaLi42RwecVuwFIJzSDwwoB8Rw43omcVOSKIQ6gLXq1eZ96CowyN30kxWudu +mHuMf82lndURlnLY8nFyvB+UZRWa16yFL/wN0RJkTVqd8akZO9sXxq/n/68BF2Cml5s yKUeSvkGYq30KS69yNunclrFH7aUAfE8NxjpzM451RKn1PQd5gz52udO8vHAV+uymp+9 nmGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AY3uyZbY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di19-20020a170906731300b00718bfd0a9d0si6661418ejc.902.2022.06.23.04.59.55; Thu, 23 Jun 2022 05:00:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AY3uyZbY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbiFWL5d (ORCPT + 99 others); Thu, 23 Jun 2022 07:57:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbiFWL50 (ORCPT ); Thu, 23 Jun 2022 07:57:26 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952924D276; Thu, 23 Jun 2022 04:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655985443; x=1687521443; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mI9mt75QXhUeT6LsBxQ1V+xM5AdpA//Kax74MdUgl40=; b=AY3uyZbYTConN7cusLyUD8jq0ihuTp5zwe0g9GI8+QI6eWT+aXkpult3 BfMr7Vnkw5AMiaxDbpuOA9O843Xyteb2UokPkZtIlabI02moh2RRtjhoR XTlK9kzyDgotF+XfSVVDQ0iUF/VRJZA97dZkq5yqSiCeUDecEfzK5FAvS 4bxskAtFgmeVhOPCRyVcJrGaDQ4+YTmn8N7tlDapMa6oBzgZ2nNBXHNpb ygsSA/DnEkqW5MpxW/vEnbp9uw4JQcZa9L+BgHTex96N08hHJkihWz8eY U4Qd+a2CIOthVJuN1gApNEYykk/7G61Na6MANvnkad2ij6TOOwc091r4o g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="281776425" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="281776425" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:57:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="915159597" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 23 Jun 2022 04:57:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 30A7249; Thu, 23 Jun 2022 14:57:26 +0300 (EEST) From: Andy Shevchenko To: Stephen Boyd , Andy Shevchenko , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Russell King Subject: [PATCH v1 2/3] clkdev: Remove never used devm_clk_release_clkdev() Date: Thu, 23 Jun 2022 14:57:18 +0300 Message-Id: <20220623115719.52683-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623115719.52683-1-andriy.shevchenko@linux.intel.com> References: <20220623115719.52683-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the entire history of the devm_clk_release_clkdev() existence (since 2018) it was never used. Remove it for good. Signed-off-by: Andy Shevchenko --- drivers/clk/clkdev.c | 34 ---------------------------------- include/linux/clkdev.h | 2 -- 2 files changed, 36 deletions(-) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index 7f397a09877d..716bb1710b89 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c @@ -353,40 +353,6 @@ static void devm_clkdev_release(struct device *dev, void *res) clkdev_drop(*(struct clk_lookup **)res); } -static int devm_clk_match_clkdev(struct device *dev, void *res, void *data) -{ - struct clk_lookup **l = res; - - return *l == data; -} - -/** - * devm_clk_release_clkdev - Resource managed clkdev lookup release - * @dev: device this lookup is bound - * @con_id: connection ID string on device - * @dev_id: format string describing device name - * - * Drop the clkdev lookup created with devm_clk_hw_register_clkdev. - * Normally this function will not need to be called and the resource - * management code will ensure that the resource is freed. - */ -void devm_clk_release_clkdev(struct device *dev, const char *con_id, - const char *dev_id) -{ - struct clk_lookup *cl; - int rval; - - mutex_lock(&clocks_mutex); - cl = clk_find(dev_id, con_id); - mutex_unlock(&clocks_mutex); - - WARN_ON(!cl); - rval = devres_release(dev, devm_clkdev_release, - devm_clk_match_clkdev, cl); - WARN_ON(rval); -} -EXPORT_SYMBOL(devm_clk_release_clkdev); - /** * devm_clk_hw_register_clkdev - managed clk lookup registration for clk_hw * @dev: device this lookup is bound diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h index 8a8423eb8e9a..45570bc21a43 100644 --- a/include/linux/clkdev.h +++ b/include/linux/clkdev.h @@ -46,6 +46,4 @@ int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *); int devm_clk_hw_register_clkdev(struct device *dev, struct clk_hw *hw, const char *con_id, const char *dev_id); -void devm_clk_release_clkdev(struct device *dev, const char *con_id, - const char *dev_id); #endif -- 2.35.1