From patchwork Tue Jul 27 22:02:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 114645 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6RM3EMN003867 for ; Tue, 27 Jul 2010 22:04:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752725Ab0G0WCw (ORCPT ); Tue, 27 Jul 2010 18:02:52 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:51084 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751877Ab0G0WCv convert rfc822-to-8bit (ORCPT ); Tue, 27 Jul 2010 18:02:51 -0400 Received: by wwj40 with SMTP id 40so1784031wwj.1 for ; Tue, 27 Jul 2010 15:02:50 -0700 (PDT) Received: by 10.216.187.143 with SMTP id y15mr9634983wem.74.1280268169272; Tue, 27 Jul 2010 15:02:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.170.71 with HTTP; Tue, 27 Jul 2010 15:02:29 -0700 (PDT) X-Originating-IP: [109.186.188.251] In-Reply-To: <1279662096-3121-3-git-send-email-h-kanigeri2@ti.com> References: <1279662096-3121-1-git-send-email-h-kanigeri2@ti.com> <1279662096-3121-3-git-send-email-h-kanigeri2@ti.com> From: Ohad Ben-Cohen Date: Wed, 28 Jul 2010 01:02:29 +0300 Message-ID: Subject: Re: [PATCH 2/2] omap:mailbox-provide multiple reader support To: Hari Kanigeri Cc: Linux Omap , Tony Lindgren , Hiroshi DOYU , "Guzman Lugo, Fernando" Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 27 Jul 2010 22:04:00 +0000 (UTC) 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.