aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenbus/xenbus_probe_frontend.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-10 09:39:15 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-01-05 16:31:08 -0500
commit6bac7f9f9e8e549c18ec4b77c499a45a1fae61b9 (patch)
treebaf84dcccc012c1dbdd5334d70d08b6b9588a5a7 /drivers/xen/xenbus/xenbus_probe_frontend.c
parent7003087ce0fcdaf57a331b4ad627195a7f97245e (diff)
xen/xenbus: fixup checkpatch issues in xenbus_probe*
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe_frontend.c')
-rw-r--r--drivers/xen/xenbus/xenbus_probe_frontend.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe_frontend.c b/drivers/xen/xenbus/xenbus_probe_frontend.c
index 60c311ab3190..5bcc2d6cf129 100644
--- a/drivers/xen/xenbus/xenbus_probe_frontend.c
+++ b/drivers/xen/xenbus/xenbus_probe_frontend.c
@@ -46,7 +46,8 @@ static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename)
46} 46}
47 47
48/* device/<typename>/<name> */ 48/* device/<typename>/<name> */
49static int xenbus_probe_frontend(struct xen_bus_type *bus, const char *type, const char *name) 49static int xenbus_probe_frontend(struct xen_bus_type *bus, const char *type,
50 const char *name)
50{ 51{
51 char *nodename; 52 char *nodename;
52 int err; 53 int err;
@@ -62,7 +63,8 @@ static int xenbus_probe_frontend(struct xen_bus_type *bus, const char *type, con
62 return err; 63 return err;
63} 64}
64 65
65static int xenbus_uevent_frontend(struct device *_dev, struct kobj_uevent_env *env) 66static int xenbus_uevent_frontend(struct device *_dev,
67 struct kobj_uevent_env *env)
66{ 68{
67 struct xenbus_device *dev = to_xenbus_device(_dev); 69 struct xenbus_device *dev = to_xenbus_device(_dev);
68 70
@@ -85,21 +87,21 @@ static struct device_attribute xenbus_frontend_dev_attrs[] = {
85 87
86static struct xen_bus_type xenbus_frontend = { 88static struct xen_bus_type xenbus_frontend = {
87 .root = "device", 89 .root = "device",
88 .levels = 2, /* device/type/<id> */ 90 .levels = 2, /* device/type/<id> */
89 .get_bus_id = frontend_bus_id, 91 .get_bus_id = frontend_bus_id,
90 .probe = xenbus_probe_frontend, 92 .probe = xenbus_probe_frontend,
91 .otherend_changed = backend_changed, 93 .otherend_changed = backend_changed,
92 .bus = { 94 .bus = {
93 .name = "xen", 95 .name = "xen",
94 .match = xenbus_match, 96 .match = xenbus_match,
95 .uevent = xenbus_uevent_frontend, 97 .uevent = xenbus_uevent_frontend,
96 .probe = xenbus_dev_probe, 98 .probe = xenbus_dev_probe,
97 .remove = xenbus_dev_remove, 99 .remove = xenbus_dev_remove,
98 .shutdown = xenbus_dev_shutdown, 100 .shutdown = xenbus_dev_shutdown,
99 .dev_attrs= xenbus_frontend_dev_attrs, 101 .dev_attrs = xenbus_frontend_dev_attrs,
100 102
101 .suspend = xenbus_dev_suspend, 103 .suspend = xenbus_dev_suspend,
102 .resume = xenbus_dev_resume, 104 .resume = xenbus_dev_resume,
103 }, 105 },
104}; 106};
105 107