|
@@ -180,6 +180,20 @@ int opal_notifier_register(struct notifier_block *nb)
|
|
|
atomic_notifier_chain_register(&opal_notifier_head, nb);
|
|
|
return 0;
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(opal_notifier_register);
|
|
|
+
|
|
|
+int opal_notifier_unregister(struct notifier_block *nb)
|
|
|
+{
|
|
|
+ if (!nb) {
|
|
|
+ pr_warning("%s: Invalid argument (%p)\n",
|
|
|
+ __func__, nb);
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
+
|
|
|
+ atomic_notifier_chain_unregister(&opal_notifier_head, nb);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(opal_notifier_unregister);
|
|
|
|
|
|
static void opal_do_notifier(uint64_t events)
|
|
|
{
|