Skip to contentSkip to conversation

OMAP: FB: Use blocking notifier apis

PATCH New Komal Shah 1 participant 1 message Mar 28, 2006 Framebuffer layer

lore
Share & tools
lore

Komal Shah

author
#0 lore raw

PATCH 1/1 OMAP: FB: Use blocking notifier apis

Imre/Tony,

Attached patch should be applied only after omap git tree is synched with linus mainline tree as of today.

I have use blocking notifiers.

---Komal Shah
http://komalshah.blogspot.com/

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Quoted 1 line

From nobody Mon Sep 17 00:00:00 2001

From: Komal Shah <[email protected]>
Date: Tue Mar 28 11:57:53 2006 +0300
Subject: [PATCH] OMAP: FB: Move to new notifier apis.

---

 drivers/video/omap/omapfb_main.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

a64117837ac59721e3bb62827e1b4742b17aa7c1

drivers/video/omap/omapfb_main.c +4 -4
index d32ba58..546e60d 100644
@@ -687,7 +687,7 @@
 	return r;
 }
 
-static struct notifier_block *omapfb_client_list;
+static BLOCKING_NOTIFIER_HEAD(omapfb_client_list);
 
 int omapfb_register_client(struct omapfb_notifier_block *omapfb_nb,
 			    omapfb_notifier_callback_t callback,
@@ -700,7 +700,7 @@
 	omapfb_nb->nb.notifier_call = (int (*)(struct notifier_block *,
 					unsigned long, void *))callback;
 	omapfb_nb->data = callback_data;
-	r = notifier_chain_register(&omapfb_client_list, &omapfb_nb->nb);
+	r = blocking_notifier_chain_register(&omapfb_client_list, &omapfb_nb->nb);
 	if (r)
 		return r;
 	if (omapfb_dev != NULL &&
@@ -714,7 +714,7 @@
 
 int omapfb_unregister_client(struct omapfb_notifier_block *omapfb_nb)
 {
-	return notifier_chain_unregister(&omapfb_client_list,
+	return blocking_notifier_chain_unregister(&omapfb_client_list,
 					 &omapfb_nb->nb);
 }
 EXPORT_SYMBOL(omapfb_unregister_client);
@@ -722,7 +722,7 @@
 void omapfb_notify_clients(struct omapfb_device *fbdev, unsigned long event)
 {
 	DBGENTER(1);
-	notifier_call_chain(&omapfb_client_list, event, fbdev);
+	blocking_notifier_call_chain(&omapfb_client_list, event, fbdev);
 }
 EXPORT_SYMBOL(omapfb_notify_clients);
 
Signature · 1 line
1.3-rc1.GIT