]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/memory.c
V4L/DVB (4200): Disable bitrate_mode when encoding mpeg-1.
[linux-2.6-omap-h63xx.git] / drivers / base / memory.c
index 105a0d61eb1f37dbe1bf51ef9ecfcb27098e947c..dd547af4681a50c87dc976cea8c22ee497f9a133 100644 (file)
@@ -47,16 +47,16 @@ static struct kset_uevent_ops memory_uevent_ops = {
        .uevent         = memory_uevent,
 };
 
-static struct notifier_block *memory_chain;
+static BLOCKING_NOTIFIER_HEAD(memory_chain);
 
 int register_memory_notifier(struct notifier_block *nb)
 {
-        return notifier_chain_register(&memory_chain, nb);
+        return blocking_notifier_chain_register(&memory_chain, nb);
 }
 
 void unregister_memory_notifier(struct notifier_block *nb)
 {
-        notifier_chain_unregister(&memory_chain, nb);
+        blocking_notifier_chain_unregister(&memory_chain, nb);
 }
 
 /*
@@ -140,7 +140,7 @@ static ssize_t show_mem_state(struct sys_device *dev, char *buf)
 
 static inline int memory_notify(unsigned long val, void *v)
 {
-       return notifier_call_chain(&memory_chain, val, v);
+       return blocking_notifier_call_chain(&memory_chain, val, v);
 }
 
 /*