|
@@ -123,6 +123,20 @@ int nvec_register_notifier(struct nvec_chip *nvec, struct notifier_block *nb,
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(nvec_register_notifier);
|
|
|
|
|
|
+/**
|
|
|
+ * nvec_unregister_notifier - Unregister a notifier with nvec
|
|
|
+ * @nvec: A &struct nvec_chip
|
|
|
+ * @nb: The notifier block to unregister
|
|
|
+ *
|
|
|
+ * Unregisters a notifier with @nvec. The notifier will be removed from the
|
|
|
+ * atomic notifier chain.
|
|
|
+ */
|
|
|
+int nvec_unregister_notifier(struct nvec_chip *nvec, struct notifier_block *nb)
|
|
|
+{
|
|
|
+ return atomic_notifier_chain_unregister(&nvec->notifier_list, nb);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(nvec_unregister_notifier);
|
|
|
+
|
|
|
/**
|
|
|
* nvec_status_notifier - The final notifier
|
|
|
*
|