diff options
author | Tony Lindgren <tony@atomide.com> | 2012-10-30 14:03:22 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-31 18:37:13 -0400 |
commit | 8280960181eae6e4039957044577b6ef7154220f (patch) | |
tree | dd0590ac041d673f1fbc7a491d99997a6d785901 /drivers | |
parent | 32dee01e67e0d14e86708c4ca6c5a9f4f81d5144 (diff) |
ARM: OMAP: Remove cpu_is_omap usage from plat-omap/dma.c
This code will be eventually in drivers, and for the
code in the drivers we don't want to have any cpu_is_omap
usage. Those macros should be private to arch/arm/mach-omap1
and arch/arm/mach-omap2.
To fix this, let's move the define for dma_omap2plus()
to dma-omap.h, and use the existing dma_attr passed in
the platform_data as the revision registers are what they
are.
Note that we can now also remove the relative includes
introduced by the recent clean-up patches.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/omap-dma.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 56d925312a5c..7d35c237fbf1 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c | |||
@@ -21,12 +21,6 @@ | |||
21 | 21 | ||
22 | #include <plat-omap/dma-omap.h> | 22 | #include <plat-omap/dma-omap.h> |
23 | 23 | ||
24 | #ifdef CONFIG_ARCH_OMAP2PLUS | ||
25 | #define dma_omap2plus() 1 | ||
26 | #else | ||
27 | #define dma_omap2plus() 0 | ||
28 | #endif | ||
29 | |||
30 | struct omap_dmadev { | 24 | struct omap_dmadev { |
31 | struct dma_device ddev; | 25 | struct dma_device ddev; |
32 | spinlock_t lock; | 26 | spinlock_t lock; |