mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-18 05:04:04 +00:00
ARM: OMAP: dma.c: Remove unused function
Remove the function get_gdma_dev() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
a61a141db8
commit
9b455e8d7c
1 changed files with 0 additions and 8 deletions
|
@ -151,14 +151,6 @@ static int omap_dma_in_1510_mode(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_OMAP1
|
#ifdef CONFIG_ARCH_OMAP1
|
||||||
static inline int get_gdma_dev(int req)
|
|
||||||
{
|
|
||||||
u32 reg = OMAP_FUNC_MUX_ARM_BASE + ((req - 1) / 5) * 4;
|
|
||||||
int shift = ((req - 1) % 5) * 6;
|
|
||||||
|
|
||||||
return ((omap_readl(reg) >> shift) & 0x3f) + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void set_gdma_dev(int req, int dev)
|
static inline void set_gdma_dev(int req, int dev)
|
||||||
{
|
{
|
||||||
u32 reg = OMAP_FUNC_MUX_ARM_BASE + ((req - 1) / 5) * 4;
|
u32 reg = OMAP_FUNC_MUX_ARM_BASE + ((req - 1) / 5) * 4;
|
||||||
|
|
Loading…
Add table
Reference in a new issue