@@ -388,16 +388,6 @@ static inline u32 omap_dm_timer_reserved_systimer(int id)
388
388
return (omap_reserved_systimers & (1 << (id - 1 ))) ? 1 : 0 ;
389
389
}
390
390
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
-
401
391
static struct omap_dm_timer * _omap_dm_timer_request (int req_type , void * data )
402
392
{
403
393
struct omap_dm_timer * timer = NULL , * t ;
@@ -499,20 +489,6 @@ static struct omap_dm_timer *omap_dm_timer_request_specific(int id)
499
489
return _omap_dm_timer_request (REQUEST_BY_ID , & id );
500
490
}
501
491
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
-
516
492
/**
517
493
* omap_dm_timer_request_by_node - Request a timer by device-tree node
518
494
* @np: Pointer to device-tree timer node
@@ -606,17 +582,6 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask)
606
582
607
583
#endif
608
584
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
-
620
585
static int omap_dm_timer_start (struct omap_dm_timer * timer )
621
586
{
622
587
u32 l ;
@@ -833,22 +798,6 @@ static int omap_dm_timer_write_counter(struct omap_dm_timer *timer, unsigned int
833
798
return 0 ;
834
799
}
835
800
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
-
852
801
static int __maybe_unused omap_dm_timer_runtime_suspend (struct device * dev )
853
802
{
854
803
struct omap_dm_timer * timer = dev_get_drvdata (dev );
0 commit comments