Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196658
b: refs/heads/master
c: a1263c7
h: refs/heads/master
v: v3
  • Loading branch information
Brian King authored and Benjamin Herrenschmidt committed May 21, 2010
1 parent 52ae663 commit 99e74cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 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: e62cee42e66dcca83aae02748535f62e0f564a0c
refs/heads/master: a1263c71448aa70afb6097fdedf93c3dff5a7a15
25 changes: 1 addition & 24 deletions trunk/arch/powerpc/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,37 +1381,14 @@ static int vio_hotplug(struct device *dev, struct kobj_uevent_env *env)
return 0;
}

static int vio_pm_suspend(struct device *dev)
{
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;

if (pm && pm->suspend)
return pm->suspend(dev);
return 0;
}

static int vio_pm_resume(struct device *dev)
{
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;

if (pm && pm->resume)
return pm->resume(dev);
return 0;
}

const struct dev_pm_ops vio_dev_pm_ops = {
.suspend = vio_pm_suspend,
.resume = vio_pm_resume,
};

static struct bus_type vio_bus_type = {
.name = "vio",
.dev_attrs = vio_dev_attrs,
.uevent = vio_hotplug,
.match = vio_bus_match,
.probe = vio_bus_probe,
.remove = vio_bus_remove,
.pm = &vio_dev_pm_ops,
.pm = GENERIC_SUBSYS_PM_OPS,
};

/**
Expand Down

0 comments on commit 99e74cf

Please sign in to comment.