public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation / CPU hotplug: Fix the typo in example code
@ 2014-01-15  5:10 Sangjung Woo
  2014-01-15  5:45 ` Srivatsa S. Bhat
  2014-01-15 23:33 ` Andrew Morton
  0 siblings, 2 replies; 3+ messages in thread
From: Sangjung Woo @ 2014-01-15  5:10 UTC (permalink / raw)
  To: Andrew Morton, Rob Landley, linux-doc, linux-kernel
  Cc: Rafael J. Wysocki, Sangjung Woo

As the notifier_block name (i.e. foobar_cpu_notifer) is different from
the parameter (i.e.foobar_cpu_notifier) of register function, that is
definitely error and it also makes readers confused.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
---
 Documentation/cpu-hotplug.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/cpu-hotplug.txt b/Documentation/cpu-hotplug.txt
index 8cb9938..be675d2 100644
--- a/Documentation/cpu-hotplug.txt
+++ b/Documentation/cpu-hotplug.txt
@@ -285,7 +285,7 @@ A: This is what you would need in your kernel code to receive notifications.
 		return NOTIFY_OK;
 	}
 
-	static struct notifier_block foobar_cpu_notifer =
+	static struct notifier_block foobar_cpu_notifier =
 	{
 	   .notifier_call = foobar_cpu_callback,
 	};
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-15 23:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15  5:10 [PATCH] Documentation / CPU hotplug: Fix the typo in example code Sangjung Woo
2014-01-15  5:45 ` Srivatsa S. Bhat
2014-01-15 23:33 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox