Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25775
b: refs/heads/master
c: 78a596b
h: refs/heads/master
i:
  25773: 7e11ec8
  25771: 308f9f1
  25767: 264ddea
  25759: d50c085
v: v3
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent d079714 commit 3d67e49
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 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: 21440d313358043b0ce5e43b00ff3c9b35a8616c
refs/heads/master: 78a596b4490e17b9990d87b9d468ef5bb70daa10
7 changes: 0 additions & 7 deletions trunk/include/linux/pm_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ extern int pm_active;
struct pm_dev __deprecated *
pm_register(pm_dev_t type, unsigned long id, pm_callback callback);

/*
* Unregister a device with power management
*/
void __deprecated pm_unregister(struct pm_dev *dev);

/*
* Unregister all devices with matching callback
*/
Expand All @@ -41,8 +36,6 @@ static inline struct pm_dev *pm_register(pm_dev_t type,
return NULL;
}

static inline void pm_unregister(struct pm_dev *dev) {}

static inline void pm_unregister_all(pm_callback callback) {}

static inline int pm_send_all(pm_request_t rqst, void *data)
Expand Down
20 changes: 0 additions & 20 deletions trunk/kernel/power/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ struct pm_dev *pm_register(pm_dev_t type,
return dev;
}

/**
* pm_unregister - unregister a device with power management
* @dev: device to unregister
*
* Remove a device from the power management notification lists. The
* dev passed must be a handle previously returned by pm_register.
*/

void pm_unregister(struct pm_dev *dev)
{
if (dev) {
mutex_lock(&pm_devs_lock);
list_del(&dev->entry);
mutex_unlock(&pm_devs_lock);

kfree(dev);
}
}

static void __pm_unregister(struct pm_dev *dev)
{
if (dev) {
Expand Down Expand Up @@ -258,7 +239,6 @@ int pm_send_all(pm_request_t rqst, void *data)
}

EXPORT_SYMBOL(pm_register);
EXPORT_SYMBOL(pm_unregister);
EXPORT_SYMBOL(pm_unregister_all);
EXPORT_SYMBOL(pm_send_all);
EXPORT_SYMBOL(pm_active);
Expand Down

0 comments on commit 3d67e49

Please sign in to comment.