diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-08-11 21:29:45 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-08-26 17:42:35 +0200 |
commit | 502ad2a669f146e0801973c42e55478322f2d382 (patch) | |
tree | 76716a5a0ea829f5342ec947004d7476fa15076c /arch/arm/mach-omap2/hsmmc.h | |
parent | ARM: OMAP1: use IS_ENABLED() instead of checking for built-in or module (diff) | |
download | linux-502ad2a669f146e0801973c42e55478322f2d382.tar.xz linux-502ad2a669f146e0801973c42e55478322f2d382.zip |
ARM: OMAP2+: 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-omap2/hsmmc.h')
-rw-r--r-- | arch/arm/mach-omap2/hsmmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/hsmmc.h b/arch/arm/mach-omap2/hsmmc.h index 148cd9b15499..69b619ddc765 100644 --- a/arch/arm/mach-omap2/hsmmc.h +++ b/arch/arm/mach-omap2/hsmmc.h @@ -28,7 +28,7 @@ struct omap2_hsmmc_info { void (*init_card)(struct mmc_card *card); }; -#if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) +#if IS_ENABLED(CONFIG_MMC_OMAP_HS) void omap_hsmmc_init(struct omap2_hsmmc_info *); void omap_hsmmc_late_init(struct omap2_hsmmc_info *); |