From: Sangjung Woo Date: Thu, 23 Jan 2014 23:55:30 +0000 (-0800) Subject: Documentation/cpu-hotplug.txt: fix a typo in example code X-Git-Tag: MMI-PSA29.97-13-9~12891^2~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3c73a99a1fac2db992b6879b8a78a3ae2fcc06e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Documentation/cpu-hotplug.txt: fix a typo in example code 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 Reviewed-by: Srivatsa S. Bhat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/cpu-hotplug.txt b/Documentation/cpu-hotplug.txt index 8cb9938cc47e..be675d2d15a7 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, };