[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1339656138-28060-1-git-send-email-ning.n.jiang@gmail.com>
Date: Thu, 14 Jun 2012 14:42:17 +0800
From: ning.n.jiang@...il.com
To: rjw@...k.pl, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, Ning Jiang <ning.n.jiang@...il.com>
Subject: [PATCH] PM: Deprecate suspend/resume in device_driver
From: Ning Jiang <ning.n.jiang@...il.com>
Make suspend/resume callbacks in device_driver deprecated and scheduled
for removal since they are not used in PM core anymore.
Legacy drivers who still use them need to move suspend/resume callbacks
to dev_pm_ops.
Signed-off-by: Ning Jiang <ning.n.jiang@...il.com>
---
include/linux/device.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/device.h b/include/linux/device.h
index e04f577..884d9a6 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -226,8 +226,8 @@ struct device_driver {
int (*probe) (struct device *dev);
int (*remove) (struct device *dev);
void (*shutdown) (struct device *dev);
- int (*suspend) (struct device *dev, pm_message_t state);
- int (*resume) (struct device *dev);
+ int (*suspend) (struct device *dev, pm_message_t state) __deprecated;
+ int (*resume) (struct device *dev) __deprecated;
const struct attribute_group **groups;
const struct dev_pm_ops *pm;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists