Added patch headers.
[linux-flexiantxendom0-3.2.10.git] / drivers / xen / util.c
1 #include <linux/err.h>
2 #include <linux/module.h>
3 #include <xen/driver_util.h>
4
5 struct class *get_xen_class(void)
6 {
7         static struct class *xen_class;
8
9         if (xen_class)
10                 return xen_class;
11
12         xen_class = class_create(THIS_MODULE, "xen");
13         if (IS_ERR(xen_class)) {
14                 printk("Failed to create xen sysfs class.\n");
15                 xen_class = NULL;
16         }
17
18         return xen_class;
19 }
20 EXPORT_SYMBOL_GPL(get_xen_class);