]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/sysdev.h
Driver core: change sysdev classes to use dynamic kobject names
[linux-2.6-omap-h63xx.git] / include / linux / sysdev.h
index 389ccf858d378013f7cc86f94e51db5df46f9991..f752e73bf977e98381b95070096522c84e2ed5a1 100644 (file)
 #define _SYSDEV_H_
 
 #include <linux/kobject.h>
+#include <linux/module.h>
 #include <linux/pm.h>
 
 
 struct sys_device;
 
 struct sysdev_class {
+       const char *name;
        struct list_head        drivers;
 
        /* Default operations for these types of devices */
@@ -100,8 +102,7 @@ struct sysdev_attribute {
 
 #define _SYSDEV_ATTR(_name,_mode,_show,_store)                 \
 {                                                              \
-       .attr = { .name = __stringify(_name), .mode = _mode,    \
-                .owner = THIS_MODULE },                        \
+       .attr = { .name = __stringify(_name), .mode = _mode },  \
        .show   = _show,                                        \
        .store  = _store,                                       \
 }