summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap1/mmc.h
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-08-11 15:29:44 -0400
committerTony Lindgren <tony@atomide.com>2016-08-26 08:41:59 -0700
commitfcebddb9d824dd0242af110fd87e8b8ba70a055c (patch)
tree57007662da3ae34f8034e84b88b92de22616f88d /arch/arm/mach-omap1/mmc.h
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
ARM: OMAP1: use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Using the macro makes the code more readable by helping abstract away some of the Kconfig built-in and module enable details. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/mmc.h')
-rw-r--r--arch/arm/mach-omap1/mmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/mmc.h b/arch/arm/mach-omap1/mmc.h
index 39c2b13de884..d7b46880e4ca 100644
--- a/arch/arm/mach-omap1/mmc.h
+++ b/arch/arm/mach-omap1/mmc.h
@@ -7,7 +7,7 @@
#define OMAP1_MMC1_BASE 0xfffb7800
#define OMAP1_MMC2_BASE 0xfffb7c00 /* omap16xx only */
-#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)
+#if IS_ENABLED(CONFIG_MMC_OMAP)
void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data,
int nr_controllers);
#else