Skip to contentSkip to conversation

cpufreq: fix comment about return value of cpufreq_register_driver()

PATCH Applied Eric Biggers 3 participants 3 messages Feb 21, 2016 – Feb 22, 2016 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: fix comment about return value of cpufreq_register_driver()

The comment has been incorrect since commit 4dea5806d332 ("cpufreq: return EEXIST instead of EBUSY for second registering").

---
 drivers/cpufreq/cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/cpufreq.c +1 -1
index e979ec7..bfefc91 100644
@@ -2384,7 +2384,7 @@ EXPORT_SYMBOL_GPL(cpufreq_boost_enabled);
  * submitted by the CPU Frequency driver.
  *
  * Registers a CPU Frequency driver to this core code. This code
- * returns zero on success, -EBUSY when another driver got here first
+ * returns zero on success, -EEXIST when another driver got here first
  * (and isn't unregistered in the meantime).
  *
  */
Signature · 1 line
2.7.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Eric Biggers

The comment has been incorrect since commit 4dea5806d332 ("cpufreq: return EEXIST instead of EBUSY for second registering").

---
 drivers/cpufreq/cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/cpufreq.c +0 -0
index e979ec7..bfefc91 100644

drivers/cpufreq/cpufreq.c EXPORT_SYMBOL_GPL(cpufreq_boost_enabled); · line 2390

Quoted 8 lines
drivers/cpufreq/cpufreq.c +1 -1
@@ -2384,7 +2384,7 @@ EXPORT_SYMBOL_GPL(cpufreq_boost_enabled);
  * submitted by the CPU Frequency driver.
  *
  * Registers a CPU Frequency driver to this core code. This code
- * returns zero on success, -EBUSY when another driver got here first
+ * returns zero on success, -EEXIST when another driver got here first
  * (and isn't unregistered in the meantime).
  *
  */
Signature · 1 line
viresh
#2 lore raw
Quoted 9 lines · Viresh Kumar
Quoted 8 lines · Eric Biggers

The comment has been incorrect since commit 4dea5806d332 ("cpufreq: return EEXIST instead of EBUSY for second registering").

---
 drivers/cpufreq/cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

drivers/cpufreq/cpufreq.c EXPORT_SYMBOL_GPL(cpufreq_boost_enabled); · line 2390

Quoted 13 lines
drivers/cpufreq/cpufreq.c +1 -1
index e979ec7..bfefc91 100644
@@ -2384,7 +2384,7 @@ EXPORT_SYMBOL_GPL(cpufreq_boost_enabled);
  * submitted by the CPU Frequency driver.
  *
  * Registers a CPU Frequency driver to this core code. This code
- * returns zero on success, -EBUSY when another driver got here first
+ * returns zero on success, -EEXIST when another driver got here first
  * (and isn't unregistered in the meantime).
  *
  */

Queued up for 4.6, thanks!