aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-11-08 13:06:37 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-04-03 19:31:45 -0400
commit0ef64986d69602ba8df933c62d0b6d6edfaf0557 (patch)
treef4a5877938564081f8a35319938236274955c838
parent64a2dc3d3de4235eb73921d870a674a23d9888f0 (diff)
ARM: omap: dma: get rid of errata global
There's no need for this to be a global variable; move it into the errata configuration function instead. Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/mach-omap1/dma.c4
-rw-r--r--arch/arm/mach-omap2/dma.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c
index b680db7a35d4..c979e3f88bbb 100644
--- a/arch/arm/mach-omap1/dma.c
+++ b/arch/arm/mach-omap1/dma.c
@@ -33,7 +33,6 @@
33#define OMAP1_DMA_BASE (0xfffed800) 33#define OMAP1_DMA_BASE (0xfffed800)
34#define OMAP1_LOGICAL_DMA_CH_COUNT 17 34#define OMAP1_LOGICAL_DMA_CH_COUNT 17
35 35
36static u32 errata;
37static u32 enable_1510_mode; 36static u32 enable_1510_mode;
38 37
39static const struct omap_dma_reg reg_map[] = { 38static const struct omap_dma_reg reg_map[] = {
@@ -244,8 +243,9 @@ static void omap1_show_dma_caps(void)
244 return; 243 return;
245} 244}
246 245
247static u32 configure_dma_errata(void) 246static unsigned configure_dma_errata(void)
248{ 247{
248 unsigned errata = 0;
249 249
250 /* 250 /*
251 * Erratum 3.2/3.3: sometimes 0 is returned if CSAC/CDAC is 251 * Erratum 3.2/3.3: sometimes 0 is returned if CSAC/CDAC is
diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c
index e633b48a3fcb..244ff5012aed 100644
--- a/arch/arm/mach-omap2/dma.c
+++ b/arch/arm/mach-omap2/dma.c
@@ -35,8 +35,6 @@
35#include "omap_hwmod.h" 35#include "omap_hwmod.h"
36#include "omap_device.h" 36#include "omap_device.h"
37 37
38static u32 errata;
39
40static struct omap_dma_dev_attr *d; 38static struct omap_dma_dev_attr *d;
41 39
42static enum omap_reg_offsets dma_common_ch_end; 40static enum omap_reg_offsets dma_common_ch_end;
@@ -124,8 +122,9 @@ static void omap2_show_dma_caps(void)
124 return; 122 return;
125} 123}
126 124
127static u32 configure_dma_errata(void) 125static unsigned configure_dma_errata(void)
128{ 126{
127 unsigned errata = 0;
129 128
130 /* 129 /*
131 * Errata applicable for OMAP2430ES1.0 and all omap2420 130 * Errata applicable for OMAP2430ES1.0 and all omap2420