diff mbox

[2/2] omap:mailbox-provide multiple reader support

Message ID AANLkTi=tHyRBgO79e=LEPOS85z=87TEt1QOvXR+keZHG@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ohad Ben Cohen July 27, 2010, 10:02 p.m. UTC
None
diff mbox

Patch

diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index 540703b..e740aea 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -51,6 +51,7 @@  struct notifier_block {
        int (*notifier_call)(struct notifier_block *, unsigned long, void *);
        struct notifier_block *next;
        int priority;
+       void *dev_id;
 };

 struct atomic_notifier_head {
diff --git a/kernel/notifier.c b/kernel/notifier.c
index 2488ba7..050fd9b 100644
--- a/kernel/notifier.c
+++ b/kernel/notifier.c
@@ -64,6 +64,7 @@  static int notifier_chain_unregister(struct notifier_block **n
  *     @nl:            Pointer to head of the blocking notifier chain
  *     @val:           Value passed unmodified to notifier function
  *     @v:             Pointer passed unmodified to notifier function
+ *                     If pointer is NULL, the notifier block's
cookie is passed
  *     @nr_to_call:    Number of notifier functions to be called. Don't care
  *                     value of this parameter is -1.