Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376037
b: refs/heads/master
c: 111c158
h: refs/heads/master
i:
  376035: b45cd96
v: v3
  • Loading branch information
Marc Dietrich authored and Greg Kroah-Hartman committed May 14, 2013
1 parent af8a481 commit 6971fa9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99758dec9507fa1c5723c926626499e895679c40
refs/heads/master: 111c158787b2a2036c444f735370cb6aef823f78
14 changes: 14 additions & 0 deletions trunk/drivers/staging/nvec/nvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/staging/nvec/nvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,8 @@ extern int nvec_register_notifier(struct nvec_chip *nvec,
struct notifier_block *nb,
unsigned int events);

extern int nvec_unregister_notifier(struct device *dev,
struct notifier_block *nb,
unsigned int events);
extern int nvec_unregister_notifier(struct nvec_chip *dev,
struct notifier_block *nb);

extern void nvec_msg_free(struct nvec_chip *nvec, struct nvec_msg *msg);

Expand Down

0 comments on commit 6971fa9

Please sign in to comment.