diff options
| author | Christoph Hellwig <hch@lst.de> | 2004-10-18 18:02:52 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-18 18:02:52 -0700 |
| commit | 71ccd42c4e97294bb1eefb577f943b97b400f4a8 (patch) | |
| tree | d5e764b7b45717f3876dfd5f7c955a2d6997956e | |
| parent | 733902e4992a01c20e5184b77b108373ae0c80ee (diff) | |
[PATCH] remove pm_find, unexport pm_send
cutting back some unused legacy PM code
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | include/linux/pm.h | 5 | ||||
| -rw-r--r-- | kernel/power/pm.c | 31 |
2 files changed, 0 insertions, 36 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 7bfd2d43963e..6446e4f65e93 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -143,11 +143,6 @@ int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data); */ int pm_send_all(pm_request_t rqst, void *data); -/* - * Find a device - */ -struct pm_dev *pm_find(pm_dev_t type, struct pm_dev *from); - static inline void pm_access(struct pm_dev *dev) {} static inline void pm_dev_idle(struct pm_dev *dev) {} diff --git a/kernel/power/pm.c b/kernel/power/pm.c index d1bc943072d4..8fca5822a807 100644 --- a/kernel/power/pm.c +++ b/kernel/power/pm.c @@ -256,41 +256,10 @@ int pm_send_all(pm_request_t rqst, void *data) return 0; } -/** - * pm_find - find a device - * @type: type of device - * @from: where to start looking - * - * Scan the power management list for devices of a specific type. The - * return value for a matching device may be passed to further calls - * to this function to find further matches. A %NULL indicates the end - * of the list. - * - * To search from the beginning pass %NULL as the @from value. - * - * The caller MUST hold the pm_devs_lock lock when calling this - * function. The instant that the lock is dropped all pointers returned - * may become invalid. - */ - -struct pm_dev *pm_find(pm_dev_t type, struct pm_dev *from) -{ - struct list_head *entry = from ? from->entry.next:pm_devs.next; - while (entry != &pm_devs) { - struct pm_dev *dev = list_entry(entry, struct pm_dev, entry); - if (type == PM_UNKNOWN_DEV || dev->type == type) - return dev; - entry = entry->next; - } - return NULL; -} - EXPORT_SYMBOL(pm_register); EXPORT_SYMBOL(pm_unregister); EXPORT_SYMBOL(pm_unregister_all); -EXPORT_SYMBOL(pm_send); EXPORT_SYMBOL(pm_send_all); -EXPORT_SYMBOL(pm_find); EXPORT_SYMBOL(pm_active); |
