mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Cc: Vinod Koul <[email protected]> Cc: Lokesh Vutla <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
This commit is contained in:
parent
32dee01e67
commit
8280960181
5 changed files with 73 additions and 66 deletions
|
|
@ -21,12 +21,6 @@
|
|||
|
||||
#include <plat-omap/dma-omap.h>
|
||||
|
||||
#ifdef CONFIG_ARCH_OMAP2PLUS
|
||||
#define dma_omap2plus() 1
|
||||
#else
|
||||
#define dma_omap2plus() 0
|
||||
#endif
|
||||
|
||||
struct omap_dmadev {
|
||||
struct dma_device ddev;
|
||||
spinlock_t lock;
|
||||
|
|
|
|||
Loading…
Reference in a new issue