Skip to content

Commit

Permalink
[ARM] pxa: remove get_lcdclk_frequency_10khz()
Browse files Browse the repository at this point in the history
get_lcdclk_frequency_10khz() is now redundant, remove it.  Hide
pxa27x_get_lcdclk_frequency_10khz() from public view.

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 82d553c commit a88a447
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
12 changes: 0 additions & 12 deletions arch/arm/mach-pxa/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ unsigned int get_memclk_frequency_10khz(void)
}
EXPORT_SYMBOL(get_memclk_frequency_10khz);

/*
* Return the current LCD clock frequency in units of 10kHz
*/
unsigned int get_lcdclk_frequency_10khz(void)
{
if (cpu_is_pxa21x() || cpu_is_pxa25x())
return pxa25x_get_memclk_frequency_10khz();
else
return pxa27x_get_lcdclk_frequency_10khz();
}
EXPORT_SYMBOL(get_lcdclk_frequency_10khz);

/*
* Handy function to set GPIO alternate functions
*/
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-pxa/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ extern unsigned pxa25x_get_memclk_frequency_10khz(void);
#ifdef CONFIG_PXA27x
extern unsigned pxa27x_get_clk_frequency_khz(int);
extern unsigned pxa27x_get_memclk_frequency_10khz(void);
extern unsigned pxa27x_get_lcdclk_frequency_10khz(void);
#else
#define pxa27x_get_clk_frequency_khz(x) (0)
#define pxa27x_get_memclk_frequency_10khz() (0)
#define pxa27x_get_lcdclk_frequency_10khz() (0)
#endif

2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ unsigned int pxa27x_get_memclk_frequency_10khz(void)
/*
* Return the current LCD clock frequency in units of 10kHz as
*/
unsigned int pxa27x_get_lcdclk_frequency_10khz(void)
static unsigned int pxa27x_get_lcdclk_frequency_10khz(void)
{
unsigned long ccsr;
unsigned int l, L, k, K;
Expand Down
1 change: 0 additions & 1 deletion include/asm-arm/arch-pxa/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ extern void pxa_set_cken(int clock, int enable);
* return current memory and LCD clock frequency in units of 10kHz
*/
extern unsigned int get_memclk_frequency_10khz(void);
extern unsigned int get_lcdclk_frequency_10khz(void);

#endif

Expand Down

0 comments on commit a88a447

Please sign in to comment.