diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2013-04-01 03:13:44 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-04-02 06:01:15 -0400 |
commit | a0a56db9771f57667daff41cfa2546dad1abe6d9 (patch) | |
tree | c763932dde9e46918b72ea82fd19a287ce94283d /arch/arm/mach-davinci/board-dm646x-evm.c | |
parent | ab70db5b81ac25691a5e040168fe4ea7fae7f39d (diff) |
ARM: davinci: use is IS_ENABLED macro
This patches replaces #if defined() by IS_ENABLED macro, which provides
better readability.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-dm646x-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm646x-evm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index de7adff324dc..03785e0e9429 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c | |||
@@ -117,12 +117,7 @@ static struct platform_device davinci_nand_device = { | |||
117 | }, | 117 | }, |
118 | }; | 118 | }; |
119 | 119 | ||
120 | #if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \ | 120 | #define HAS_ATA IS_ENABLED(CONFIG_BLK_DEV_PALMCHIP_BK3710) |
121 | defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE) | ||
122 | #define HAS_ATA 1 | ||
123 | #else | ||
124 | #define HAS_ATA 0 | ||
125 | #endif | ||
126 | 121 | ||
127 | /* CPLD Register 0 bits to control ATA */ | 122 | /* CPLD Register 0 bits to control ATA */ |
128 | #define DM646X_EVM_ATA_RST BIT(0) | 123 | #define DM646X_EVM_ATA_RST BIT(0) |