Skip to contentSkip to conversation

ARM: tegra: do not hide dma declarations

PATCH Applied Alan Ott 3 participants 4 messages Mar 2, 2012 – Apr 16, 2012

Subsystems (3)

v2 of 3 Applied Latest is v3 →

lore
Share & tools
lore

Alan Ott

author
#0 lore raw

PATCH v2 1/6 ARM: tegra: do not hide dma declarations

From: Arnd Bergmann <[email protected]>

The declarations are actually required for the device definitions, and are still valid even if the dma controller is disabled:

arch/arm/mach-tegra/devices.c:559:12: error: 'TEGRA_DMA_REQ_SEL_I2S_1' undeclared here (not in a function) arch/arm/mach-tegra/devices.c:577:12: error: 'TEGRA_DMA_REQ_SEL_I2S2_1' undeclared here (not in a function)

---
 arch/arm/mach-tegra/include/mach/dma.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/mach-tegra/include/mach/dma.h +0 -4
index 3c93390..9077092 100644
@@ -51,8 +51,6 @@
 #define TEGRA_DMA_REQ_SEL_OWR			25
 #define TEGRA_DMA_REQ_SEL_INVALID		31
 
-#if defined(CONFIG_TEGRA_SYSTEM_DMA)
-
 struct tegra_dma_req;
 struct tegra_dma_channel;
 
@@ -151,5 +149,3 @@ void tegra_dma_free_channel(struct tegra_dma_channel *ch);
 int __init tegra_dma_init(void);
 
 #endif
-
-#endif
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 11 lines · Alan Ott

From: Arnd Bergmann <[email protected]>

The declarations are actually required for the device definitions, and are still valid even if the dma controller is disabled:

arch/arm/mach-tegra/devices.c:559:12: error: 'TEGRA_DMA_REQ_SEL_I2S_1' undeclared here (not in a function) arch/arm/mach-tegra/devices.c:577:12: error: 'TEGRA_DMA_REQ_SEL_I2S2_1' undeclared here (not in a function)

Thanks, applied to cleanups-and-fixes for 3.4.

-Olof

#2 lore raw
Quoted 7 lines · Olof Johansson
Quoted 6 lines · Alan Ott

From: Arnd Bergmann <[email protected]>

The declarations are actually required for the device definitions, and are still valid even if the dma controller is disabled:

Quoted 7 lines
Quoted 5 lines

arch/arm/mach-tegra/devices.c:559:12: error: 'TEGRA_DMA_REQ_SEL_I2S_1' undeclared here (not in a function) arch/arm/mach-tegra/devices.c:577:12: error: 'TEGRA_DMA_REQ_SEL_I2S2_1' undeclared here (not in a function)

Thanks, applied to cleanups-and-fixes for 3.4.

Oh, a corresponding fix for this is already in mainline, so I dropped it again (noticed due to conflicts).

-Olof

#3 lore raw
In reply to Alan Ott
Quoted 11 lines · Alan Ott

From: Arnd Bergmann <[email protected]>

The declarations are actually required for the device definitions, and are still valid even if the dma controller is disabled:

arch/arm/mach-tegra/devices.c:559:12: error: 'TEGRA_DMA_REQ_SEL_I2S_1' undeclared here (not in a function) arch/arm/mach-tegra/devices.c:577:12: error: 'TEGRA_DMA_REQ_SEL_I2S2_1' undeclared here (not in a function)

Applied, thanks.