Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2509932rwb; Mon, 15 Aug 2022 06:45:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7okBvoehFVB/931TylnbftC5Bzy6q1z1iV0W6P3NTr/FQ6t942nSIoNSNGJHLIAoi1wwk5 X-Received: by 2002:a05:6402:540f:b0:440:d9a4:aebf with SMTP id ev15-20020a056402540f00b00440d9a4aebfmr14541711edb.196.1660571116587; Mon, 15 Aug 2022 06:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660571116; cv=none; d=google.com; s=arc-20160816; b=fAwPKXpdZba1/3tS3INx98sOBD8ZXMA44G/9eJQ2eoCBcz9CO8M76eg7Z7FvHDFIaB HprGRWAoIWwjdRKHdXFB8oOLFQ1Qf0est5eVqUgY2NQBMzjWPTTVBHiVEi+NtsyKjhKu /BH0OkyWwdYp2UMwuaRphUenIPY04Z2UoDZw3YkGNYX+EOs2HBU4aeO8fpCX3tGUP8vv Y9dDGKkXLUMVxeALIGtJM/cSB4tZ7wR94TJz8xVBnjz0ckIe75PecwF2OXbAx5EDlB50 0khgx7woY3dKshVn27XGO8pk6ZcdYXrBUi3YY9JS73hWSouS+F7MYVdP/PZkGlCxH/Zt 6LkQ== 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; bh=5gO4LJEzQsglcdJPxFKaNrWYZdbjVlLcudJY/EoRd1I=; b=0QVgvtSwbS+FWZG3bNVX2vWK+0ue5+PLAxiPY1o3CG1XaCsB+CXSFN03Rk1kl8GXJ3 zZjQ7n8iIlBAmPBQdh4VbXtlmQCLqMuvfFNeFZY6KEK1CL5AzUp1/pNg9937PNMlH8Pn Sf2Lo3N0vgE7Vf+RMzqAePv5lkFozmdHLUhX+hba1HdIBkJka/GbmLT/7M6ichWuFtIu bUasgMMtGIBPBC5su4EMmdFZOLHcSwwFS2cz+fdnlClCx4O6mRKQdBKiIAlqMaYBQSqa Z8UAyWTBvQEoxYOOS5nLOCGCjgd4mrP1WNwWc/ghhwvCeFKAepQjR3KY5zWL2Ma683Pm 4zNg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a17090635c200b0072f664f368asi7929436ejb.199.2022.08.15.06.44.50; Mon, 15 Aug 2022 06:45:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242726AbiHONN0 (ORCPT + 99 others); Mon, 15 Aug 2022 09:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242703AbiHONNX (ORCPT ); Mon, 15 Aug 2022 09:13:23 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A707D12D3E; Mon, 15 Aug 2022 06:13:22 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 2CEB381D0; Mon, 15 Aug 2022 13:06:29 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner Cc: Aaro Koskinen , Grygorii Strashko , Janusz Krzysztofik , Keerthy , Ladislav Michl , Nishanth Menon , Suman Anna , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/9] clocksource/drivers/timer-ti-dm: Drop unused functions Date: Mon, 15 Aug 2022 16:12:42 +0300 Message-Id: <20220815131250.34603-2-tony@atomide.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220815131250.34603-1-tony@atomide.com> References: <20220815131250.34603-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 We still have some unused functions left, let's drop them. Signed-off-by: Tony Lindgren --- drivers/clocksource/timer-ti-dm.c | 51 ------------------------------- include/clocksource/timer-ti-dm.h | 7 ----- 2 files changed, 58 deletions(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -388,16 +388,6 @@ static inline u32 omap_dm_timer_reserved_systimer(int id) return (omap_reserved_systimers & (1 << (id - 1))) ? 1 : 0; } -int omap_dm_timer_reserve_systimer(int id) -{ - if (omap_dm_timer_reserved_systimer(id)) - return -ENODEV; - - omap_reserved_systimers |= (1 << (id - 1)); - - return 0; -} - static struct omap_dm_timer *_omap_dm_timer_request(int req_type, void *data) { struct omap_dm_timer *timer = NULL, *t; @@ -499,20 +489,6 @@ static struct omap_dm_timer *omap_dm_timer_request_specific(int id) return _omap_dm_timer_request(REQUEST_BY_ID, &id); } -/** - * omap_dm_timer_request_by_cap - Request a timer by capability - * @cap: Bit mask of capabilities to match - * - * Find a timer based upon capabilities bit mask. Callers of this function - * should use the definitions found in the plat/dmtimer.h file under the - * comment "timer capabilities used in hwmod database". Returns pointer to - * timer handle on success and a NULL pointer on failure. - */ -struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap) -{ - return _omap_dm_timer_request(REQUEST_BY_CAP, &cap); -} - /** * omap_dm_timer_request_by_node - Request a timer by device-tree node * @np: Pointer to device-tree timer node @@ -606,17 +582,6 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask) #endif -int omap_dm_timer_trigger(struct omap_dm_timer *timer) -{ - if (unlikely(!timer || !atomic_read(&timer->enabled))) { - pr_err("%s: timer not available or enabled.\n", __func__); - return -EINVAL; - } - - omap_dm_timer_write_reg(timer, OMAP_TIMER_TRIGGER_REG, 0); - return 0; -} - static int omap_dm_timer_start(struct omap_dm_timer *timer) { u32 l; @@ -833,22 +798,6 @@ static int omap_dm_timer_write_counter(struct omap_dm_timer *timer, unsigned int return 0; } -int omap_dm_timers_active(void) -{ - struct omap_dm_timer *timer; - - list_for_each_entry(timer, &omap_timer_list, node) { - if (!timer->reserved) - continue; - - if (omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG) & - OMAP_TIMER_CTRL_ST) { - return 1; - } - } - return 0; -} - static int __maybe_unused omap_dm_timer_runtime_suspend(struct device *dev) { struct omap_dm_timer *timer = dev_get_drvdata(dev); diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h --- a/include/clocksource/timer-ti-dm.h +++ b/include/clocksource/timer-ti-dm.h @@ -119,17 +119,10 @@ struct omap_dm_timer { struct notifier_block nb; }; -int omap_dm_timer_reserve_systimer(int id); -struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap); - int omap_dm_timer_get_irq(struct omap_dm_timer *timer); u32 omap_dm_timer_modify_idlect_mask(u32 inputmask); -int omap_dm_timer_trigger(struct omap_dm_timer *timer); - -int omap_dm_timers_active(void); - /* * Do not use the defines below, they are not needed. They should be only * used by dmtimer.c and sys_timer related code. -- 2.37.1