diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-11-08 19:06:37 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-04 01:31:45 +0200 |
commit | 0ef64986d69602ba8df933c62d0b6d6edfaf0557 (patch) | |
tree | f4a5877938564081f8a35319938236274955c838 /arch/arm/mach-omap2/dma.c | |
parent | ARM: omap: clean up DMA register accesses (diff) | |
download | linux-0ef64986d69602ba8df933c62d0b6d6edfaf0557.tar.xz linux-0ef64986d69602ba8df933c62d0b6d6edfaf0557.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | arch/arm/mach-omap2/dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ #include "omap_hwmod.h" #include "omap_device.h" -static u32 errata; - static struct omap_dma_dev_attr *d; static enum omap_reg_offsets dma_common_ch_end; @@ -124,8 +122,9 @@ static void omap2_show_dma_caps(void) return; } -static u32 configure_dma_errata(void) +static unsigned configure_dma_errata(void) { + unsigned errata = 0; /* * Errata applicable for OMAP2430ES1.0 and all omap2420 |