Skip to content

Commit

Permalink
Documentation/cpu-hotplug.txt: fix a typo in example code
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Srivatsa S. Bhat <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
again4you authored and torvalds committed Jan 24, 2014
1 parent 4a47415 commit f3c73a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/cpu-hotplug.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit f3c73a9

Please sign in to comment.