Skip to content

Commit caa5900

Browse files
tmlinddlezcano
authored andcommitted
clocksource/drivers/timer-ti-dm: Drop unused functions
We still have some unused functions left, let's drop them. Signed-off-by: Tony Lindgren <[email protected]> Reviewed-by: Janusz Krzysztofik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 0e2c8e6 commit caa5900

File tree

2 files changed

+0
-58
lines changed

2 files changed

+0
-58
lines changed

drivers/clocksource/timer-ti-dm.c

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -388,16 +388,6 @@ static inline u32 omap_dm_timer_reserved_systimer(int id)
388388
return (omap_reserved_systimers & (1 << (id - 1))) ? 1 : 0;
389389
}
390390

391-
int omap_dm_timer_reserve_systimer(int id)
392-
{
393-
if (omap_dm_timer_reserved_systimer(id))
394-
return -ENODEV;
395-
396-
omap_reserved_systimers |= (1 << (id - 1));
397-
398-
return 0;
399-
}
400-
401391
static struct omap_dm_timer *_omap_dm_timer_request(int req_type, void *data)
402392
{
403393
struct omap_dm_timer *timer = NULL, *t;
@@ -499,20 +489,6 @@ static struct omap_dm_timer *omap_dm_timer_request_specific(int id)
499489
return _omap_dm_timer_request(REQUEST_BY_ID, &id);
500490
}
501491

502-
/**
503-
* omap_dm_timer_request_by_cap - Request a timer by capability
504-
* @cap: Bit mask of capabilities to match
505-
*
506-
* Find a timer based upon capabilities bit mask. Callers of this function
507-
* should use the definitions found in the plat/dmtimer.h file under the
508-
* comment "timer capabilities used in hwmod database". Returns pointer to
509-
* timer handle on success and a NULL pointer on failure.
510-
*/
511-
struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap)
512-
{
513-
return _omap_dm_timer_request(REQUEST_BY_CAP, &cap);
514-
}
515-
516492
/**
517493
* omap_dm_timer_request_by_node - Request a timer by device-tree node
518494
* @np: Pointer to device-tree timer node
@@ -606,17 +582,6 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask)
606582

607583
#endif
608584

609-
int omap_dm_timer_trigger(struct omap_dm_timer *timer)
610-
{
611-
if (unlikely(!timer || !atomic_read(&timer->enabled))) {
612-
pr_err("%s: timer not available or enabled.\n", __func__);
613-
return -EINVAL;
614-
}
615-
616-
omap_dm_timer_write_reg(timer, OMAP_TIMER_TRIGGER_REG, 0);
617-
return 0;
618-
}
619-
620585
static int omap_dm_timer_start(struct omap_dm_timer *timer)
621586
{
622587
u32 l;
@@ -833,22 +798,6 @@ static int omap_dm_timer_write_counter(struct omap_dm_timer *timer, unsigned int
833798
return 0;
834799
}
835800

836-
int omap_dm_timers_active(void)
837-
{
838-
struct omap_dm_timer *timer;
839-
840-
list_for_each_entry(timer, &omap_timer_list, node) {
841-
if (!timer->reserved)
842-
continue;
843-
844-
if (omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG) &
845-
OMAP_TIMER_CTRL_ST) {
846-
return 1;
847-
}
848-
}
849-
return 0;
850-
}
851-
852801
static int __maybe_unused omap_dm_timer_runtime_suspend(struct device *dev)
853802
{
854803
struct omap_dm_timer *timer = dev_get_drvdata(dev);

include/clocksource/timer-ti-dm.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,10 @@ struct omap_dm_timer {
119119
struct notifier_block nb;
120120
};
121121

122-
int omap_dm_timer_reserve_systimer(int id);
123-
struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap);
124-
125122
int omap_dm_timer_get_irq(struct omap_dm_timer *timer);
126123

127124
u32 omap_dm_timer_modify_idlect_mask(u32 inputmask);
128125

129-
int omap_dm_timer_trigger(struct omap_dm_timer *timer);
130-
131-
int omap_dm_timers_active(void);
132-
133126
/*
134127
* Do not use the defines below, they are not needed. They should be only
135128
* used by dmtimer.c and sys_timer related code.

0 commit comments

Comments
 (0)