diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2013-04-01 12:43:44 +0530 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-04-02 15:31:15 +0530 |
commit | a0a56db9771f57667daff41cfa2546dad1abe6d9 (patch) | |
tree | c763932dde9e46918b72ea82fd19a287ce94283d /arch/arm/mach-davinci/board-da850-evm.c | |
parent | ab70db5b81ac25691a5e040168fe4ea7fae7f39d (diff) | |
download | kernel-common-a0a56db9771f57667daff41cfa2546dad1abe6d9.tar.gz kernel-common-a0a56db9771f57667daff41cfa2546dad1abe6d9.tar.bz2 kernel-common-a0a56db9771f57667daff41cfa2546dad1abe6d9.zip |
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-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index c2dfe06563df..a74dec756647 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -335,12 +335,7 @@ static const short da850_evm_nor_pins[] = { -1 }; -#if defined(CONFIG_MMC_DAVINCI) || \ - defined(CONFIG_MMC_DAVINCI_MODULE) -#define HAS_MMC 1 -#else -#define HAS_MMC 0 -#endif +#define HAS_MMC IS_ENABLED(CONFIG_MMC_DAVINCI) static inline void da850_evm_setup_nor_nand(void) { |