From: Jarkko Nikula Date: Wed, 13 Mar 2013 20:15:49 +0000 (+0200) Subject: ARM: OMAP2+: Remove unused DMA channel definitions X-Git-Tag: omap-for-v3.10/cleanup-v2-signed~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8443c8e058bb04ba2168936d905e57cc5711d7a;p=pandora-kernel.git ARM: OMAP2+: Remove unused DMA channel definitions Many of these channel definitions have became unused or were never used so remove unused definitions from arch/arm/mach-omap2/dma.h using a script below. See also notes in commit d5e7c86 ("ARM: OMAP2+: DMA: Moving OMAP2+ DMA channel definitions to mach-omap2") for removing remaining ones. egrep '#define OMAP.*DMA' arch/arm/mach-omap2/dma.h \ |cut -f 1 |cut -d ' ' -f 2 | while read -r i; do \ if [ `git grep -c $i | wc -l` -eq 1 ]; then \ echo "removing" $i; \ sed -i "/${i}/d" arch/arm/mach-omap2/dma.h; \ fi; \ done Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed