aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenbus/xenbus_probe_frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe_frontend.c')
-rw-r--r--drivers/xen/xenbus/xenbus_probe_frontend.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe_frontend.c b/drivers/xen/xenbus/xenbus_probe_frontend.c
index 5bcc2d6cf129..ea83999c02f3 100644
--- a/drivers/xen/xenbus/xenbus_probe_frontend.c
+++ b/drivers/xen/xenbus/xenbus_probe_frontend.c
@@ -85,6 +85,12 @@ static struct device_attribute xenbus_frontend_dev_attrs[] = {
85 __ATTR_NULL 85 __ATTR_NULL
86}; 86};
87 87
88static const struct dev_pm_ops xenbus_pm_ops = {
89 .suspend = xenbus_dev_suspend,
90 .resume = xenbus_dev_resume,
91 .thaw = xenbus_dev_cancel,
92};
93
88static struct xen_bus_type xenbus_frontend = { 94static struct xen_bus_type xenbus_frontend = {
89 .root = "device", 95 .root = "device",
90 .levels = 2, /* device/type/<id> */ 96 .levels = 2, /* device/type/<id> */
@@ -100,8 +106,7 @@ static struct xen_bus_type xenbus_frontend = {
100 .shutdown = xenbus_dev_shutdown, 106 .shutdown = xenbus_dev_shutdown,
101 .dev_attrs = xenbus_frontend_dev_attrs, 107 .dev_attrs = xenbus_frontend_dev_attrs,
102 108
103 .suspend = xenbus_dev_suspend, 109 .pm = &xenbus_pm_ops,
104 .resume = xenbus_dev_resume,
105 }, 110 },
106}; 111};
107 112