Commit 18c25ff4 authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Jeff Garzik

ahci_platform: add hibernation callbacks

Use existing suspend, resume implementation for hibernation callbacks.
Signed-off-by: default avatarShiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 60428407
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pm.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/device.h> #include <linux/device.h>
...@@ -271,13 +272,10 @@ static int ahci_resume(struct device *dev) ...@@ -271,13 +272,10 @@ static int ahci_resume(struct device *dev)
return 0; return 0;
} }
static struct dev_pm_ops ahci_pm_ops = {
.suspend = &ahci_suspend,
.resume = &ahci_resume,
};
#endif #endif
SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_suspend, ahci_resume);
static const struct of_device_id ahci_of_match[] = { static const struct of_device_id ahci_of_match[] = {
{ .compatible = "calxeda,hb-ahci", }, { .compatible = "calxeda,hb-ahci", },
{ .compatible = "snps,spear-ahci", }, { .compatible = "snps,spear-ahci", },
...@@ -291,9 +289,7 @@ static struct platform_driver ahci_driver = { ...@@ -291,9 +289,7 @@ static struct platform_driver ahci_driver = {
.name = "ahci", .name = "ahci",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = ahci_of_match, .of_match_table = ahci_of_match,
#ifdef CONFIG_PM
.pm = &ahci_pm_ops, .pm = &ahci_pm_ops,
#endif
}, },
.id_table = ahci_devtype, .id_table = ahci_devtype,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment