summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2015-04-08 09:45:26 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2015-04-08 09:45:26 +1000
commit78661df6d249b719ed8776dfb42a6eefac3593c4 (patch)
tree89f2b68b3fafbe0f5020db930657be35e733753f
parentc185378bc6adbf805c2ca89dc31ab349f6de85f2 (diff)
downloadlinux-78661df6d249b719ed8776dfb42a6eefac3593c4.tar.gz
linux-78661df6d249b719ed8776dfb42a6eefac3593c4.tar.xz
include/linux/kconfig.h: ese macros which are already defined
It is better to use macros which are already available because then there is just one location which needs to be change. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--include/linux/kconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h
index be342b94c640..71acdf650e2e 100644
--- a/include/linux/kconfig.h
+++ b/include/linux/kconfig.h
@@ -28,7 +28,7 @@
*
*/
#define IS_ENABLED(option) \
- (config_enabled(option) || config_enabled(option##_MODULE))
+ (IS_BUILTIN(option) || IS_MODULE(option))
/*
* IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0