From e8757665178fe736e210223bd0b0ba4870acf06b Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Thu, 4 Jun 2009 22:13:25 +0200 Subject: [PATCH] --- yaml --- r: 148677 b: refs/heads/master c: 00725787511e20dbd1fdc1fb233606120ae5c8cf h: refs/heads/master i: 148675: 8d2f28bfb38b66ed78249dfac80225c096cb4ac0 v: v3 --- [refs] | 2 +- trunk/drivers/base/power/main.c | 7 ------- trunk/include/linux/device.h | 3 --- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/[refs] b/[refs] index f0f741d6743b..9198bf5523ff 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fe419535d82724314bbf1244a0e740e4ea1bd3ae +refs/heads/master: 00725787511e20dbd1fdc1fb233606120ae5c8cf diff --git a/trunk/drivers/base/power/main.c b/trunk/drivers/base/power/main.c index 68f9f3cecf7a..fae725458981 100644 --- a/trunk/drivers/base/power/main.c +++ b/trunk/drivers/base/power/main.c @@ -399,9 +399,6 @@ static int device_resume(struct device *dev, pm_message_t state) if (dev->type->pm) { pm_dev_dbg(dev, state, "type "); error = pm_op(dev, dev->type->pm, state); - } else if (dev->type->resume) { - pm_dev_dbg(dev, state, "legacy type "); - error = dev->type->resume(dev); } if (error) goto End; @@ -641,10 +638,6 @@ static int device_suspend(struct device *dev, pm_message_t state) if (dev->type->pm) { pm_dev_dbg(dev, state, "type "); error = pm_op(dev, dev->type->pm, state); - } else if (dev->type->suspend) { - pm_dev_dbg(dev, state, "legacy type "); - error = dev->type->suspend(dev, state); - suspend_report_result(dev->type->suspend, error); } if (error) goto End; diff --git a/trunk/include/linux/device.h b/trunk/include/linux/device.h index 84d79cde9f7d..a4a7b10aaa48 100644 --- a/trunk/include/linux/device.h +++ b/trunk/include/linux/device.h @@ -289,9 +289,6 @@ struct device_type { int (*uevent)(struct device *dev, struct kobj_uevent_env *env); void (*release)(struct device *dev); - int (*suspend)(struct device *dev, pm_message_t state); - int (*resume)(struct device *dev); - struct dev_pm_ops *pm; };