s390/ap: Remove ap device suspend and resume callbacks
With the removal of the s390 hibernate support the suspend and resume callbacks for the ap devices are not needed any more. This patch removes the callbacks and the ap bus' registration struct for the power management. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Родитель
7a11c67a1f
Коммит
3cc7c92710
|
@ -587,24 +587,6 @@ static int ap_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ap_dev_suspend(struct device *dev)
|
|
||||||
{
|
|
||||||
struct ap_device *ap_dev = to_ap_dev(dev);
|
|
||||||
|
|
||||||
if (ap_dev->drv && ap_dev->drv->suspend)
|
|
||||||
ap_dev->drv->suspend(ap_dev);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ap_dev_resume(struct device *dev)
|
|
||||||
{
|
|
||||||
struct ap_device *ap_dev = to_ap_dev(dev);
|
|
||||||
|
|
||||||
if (ap_dev->drv && ap_dev->drv->resume)
|
|
||||||
ap_dev->drv->resume(ap_dev);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void ap_bus_suspend(void)
|
static void ap_bus_suspend(void)
|
||||||
{
|
{
|
||||||
AP_DBF(DBF_DEBUG, "%s running\n", __func__);
|
AP_DBF(DBF_DEBUG, "%s running\n", __func__);
|
||||||
|
@ -694,13 +676,10 @@ static struct notifier_block ap_power_notifier = {
|
||||||
.notifier_call = ap_power_event,
|
.notifier_call = ap_power_event,
|
||||||
};
|
};
|
||||||
|
|
||||||
static SIMPLE_DEV_PM_OPS(ap_bus_pm_ops, ap_dev_suspend, ap_dev_resume);
|
|
||||||
|
|
||||||
static struct bus_type ap_bus_type = {
|
static struct bus_type ap_bus_type = {
|
||||||
.name = "ap",
|
.name = "ap",
|
||||||
.match = &ap_bus_match,
|
.match = &ap_bus_match,
|
||||||
.uevent = &ap_uevent,
|
.uevent = &ap_uevent,
|
||||||
.pm = &ap_bus_pm_ops,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __ap_revise_reserved(struct device *dev, void *dummy)
|
static int __ap_revise_reserved(struct device *dev, void *dummy)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче