Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10837
b: refs/heads/master
c: 9a7834d
h: refs/heads/master
i:
  10835: 10abafa
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent d9e5a7c commit 45ecc8b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 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: db2d55b7f7f11823b8d2e5f0c706c7a264320d1b
refs/heads/master: 9a7834d06d553d02cc6e659e94772f69a8b5367f
13 changes: 0 additions & 13 deletions trunk/drivers/base/power/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ extern int suspend_device(struct device *, pm_message_t);
* runtime.c
*/

extern int dpm_runtime_suspend(struct device *, pm_message_t);
extern void dpm_runtime_resume(struct device *);

#else /* CONFIG_PM */


Expand All @@ -82,14 +79,4 @@ static inline void device_pm_remove(struct device * dev)

}

static inline int dpm_runtime_suspend(struct device * dev, pm_message_t state)
{
return 0;
}

static inline void dpm_runtime_resume(struct device * dev)
{

}

#endif
2 changes: 0 additions & 2 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2652,8 +2652,6 @@ static void hub_events(void)
* stub "device" node was never suspended.
*/
if (i) {
extern void dpm_runtime_resume(struct device *);

dpm_runtime_resume(&hdev->dev);
dpm_runtime_resume(&intf->dev);
}
Expand Down
13 changes: 13 additions & 0 deletions trunk/include/linux/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ extern int device_suspend(pm_message_t state);
#define device_may_wakeup(dev) \
(device_can_wakeup(dev) && (dev)->power.should_wakeup)

extern int dpm_runtime_suspend(struct device *, pm_message_t);
extern void dpm_runtime_resume(struct device *);

#else /* !CONFIG_PM */

static inline int device_suspend(pm_message_t state)
Expand All @@ -253,6 +256,16 @@ static inline int device_suspend(pm_message_t state)
#define device_set_wakeup_enable(dev,val) do{}while(0)
#define device_may_wakeup(dev) (0)

static inline int dpm_runtime_suspend(struct device * dev, pm_message_t state)
{
return 0;
}

static inline void dpm_runtime_resume(struct device * dev)
{

}

#endif

/* changes to device_may_wakeup take effect on the next pm state change.
Expand Down

0 comments on commit 45ecc8b

Please sign in to comment.