[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1331893195-27078-1-git-send-email-shiraz.hashim@st.com>
Date: Fri, 16 Mar 2012 15:49:55 +0530
From: Shiraz Hashim <shiraz.hashim@...com>
To: <linux-ide@...r.kernel.org>, Jeff Garzik <jgarzik@...ox.com>
Cc: <linux-kernel@...r.kernel.org>, <spear-devel@...t.st.com>,
Shiraz Hashim <shiraz.hashim@...com>
Subject: [PATCH resend] ata/ahci_platform: add hibernation callbacks
Use existing suspend, resume implementation for hibernation callbacks.
Signed-off-by: Shiraz Hashim <shiraz.hashim@...com>
---
drivers/ata/ahci_platform.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
index 2bbcbbe..4431c60 100644
--- a/drivers/ata/ahci_platform.c
+++ b/drivers/ata/ahci_platform.c
@@ -16,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/gfp.h>
#include <linux/module.h>
+#include <linux/pm.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/device.h>
@@ -286,13 +287,10 @@ static int ahci_resume(struct device *dev)
return 0;
}
-
-static struct dev_pm_ops ahci_pm_ops = {
- .suspend = &ahci_suspend,
- .resume = &ahci_resume,
-};
#endif
+SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_suspend, ahci_resume);
+
static const struct of_device_id ahci_of_match[] = {
{ .compatible = "calxeda,hb-ahci", },
{},
@@ -305,9 +303,7 @@ static struct platform_driver ahci_driver = {
.name = "ahci",
.owner = THIS_MODULE,
.of_match_table = ahci_of_match,
-#ifdef CONFIG_PM
.pm = &ahci_pm_ops,
-#endif
},
.id_table = ahci_devtype,
};
--
1.7.9.rc0
--
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