Skip to contentSkip to conversation

coresight-etm: remove check for unknown Kconfig macro

PATCH In review Paul Bolle 2 participants 2 messages Jan 19, 2015 – Jan 20, 2015

lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH 1/1 coresight-etm: remove check for unknown Kconfig macro

The CoreSight ETM/PTM driver contains a check for a CONFIG_CORESIGHT_SOURCE_ETM_DEFAULT_ENABLE macro. But there's no related Kconfig symbol CORESIGHT_SOURCE_ETM_DEFAULT_ENABLE. Remove that check and the single line of code it hides.

---
Cross-compile tested only (on top of next-20150119).

 drivers/coresight/coresight-etm3x.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/coresight/coresight-etm3x.c +0 -4
index 73c36696f1b6..f312dc4dd95c 100644
@@ -34,11 +34,7 @@
 
 #include "coresight-etm.h"
 
-#ifdef CONFIG_CORESIGHT_SOURCE_ETM_DEFAULT_ENABLE
-static int boot_enable = 1;
-#else
 static int boot_enable;
-#endif
 module_param_named(
 	boot_enable, boot_enable, int, S_IRUGO
 );
Signature · 1 line
1.9.3
#1 lore raw
Quoted 29 lines · Paul Bolle

The CoreSight ETM/PTM driver contains a check for a CONFIG_CORESIGHT_SOURCE_ETM_DEFAULT_ENABLE macro. But there's no related Kconfig symbol CORESIGHT_SOURCE_ETM_DEFAULT_ENABLE. Remove that check and the single line of code it hides.

---
Cross-compile tested only (on top of next-20150119).

 drivers/coresight/coresight-etm3x.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/coresight/coresight-etm3x.c +0 -5
index 73c36696f1b6..f312dc4dd95c 100644
@@ -34,11 +34,7 @@
 
 #include "coresight-etm.h"
 
-#ifdef CONFIG_CORESIGHT_SOURCE_ETM_DEFAULT_ENABLE
-static int boot_enable = 1;
-#else
 static int boot_enable;
-#endif
 module_param_named(
        boot_enable, boot_enable, int, S_IRUGO
 );
--
Quoted 2 lines

1.9.3

Applied - with a slight modification to keep the "module_param_named" macro on the same line.