Skip to content

Commit

Permalink
[ARM] pxa: mark pxa_set_cken deprecated
Browse files Browse the repository at this point in the history
Allow the generic clock support code to fiddle with the CKEN register
and mark pxa_set_cken() deprecated.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Oct 12, 2007
1 parent a88a447 commit a7073b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-pxa/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ EXPORT_SYMBOL(pxa_gpio_set_value);
/*
* Routine to safely enable or disable a clock in the CKEN
*/
void pxa_set_cken(int clock, int enable)
void __pxa_set_cken(int clock, int enable)
{
unsigned long flags;
local_irq_save(flags);
Expand All @@ -136,7 +136,7 @@ void pxa_set_cken(int clock, int enable)
local_irq_restore(flags);
}

EXPORT_SYMBOL(pxa_set_cken);
EXPORT_SYMBOL(__pxa_set_cken);

/*
* Intel PXA2xx internal register mapping.
Expand Down
6 changes: 5 additions & 1 deletion include/asm-arm/arch-pxa/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ extern void pxa_gpio_set_value(unsigned gpio, int value);
/*
* Routine to enable or disable CKEN
*/
extern void pxa_set_cken(int clock, int enable);
static inline void __deprecated pxa_set_cken(int clock, int enable)
{
extern void __pxa_set_cken(int clock, int enable);
__pxa_set_cken(clock, enable);
}

/*
* return current memory and LCD clock frequency in units of 10kHz
Expand Down

0 comments on commit a7073b8

Please sign in to comment.