Commit 082bd7df authored by Patrick Mochel's avatar Patrick Mochel

[driver model] Remove struct sys_device::entry

It was added by accident from another patch and is redundant with 
struct sys_device::kobj.entry.
parent 4d7fcae9
...@@ -218,9 +218,6 @@ void sys_device_unregister(struct sys_device * sysdev) ...@@ -218,9 +218,6 @@ void sys_device_unregister(struct sys_device * sysdev)
if (drv->remove) if (drv->remove)
drv->remove(sysdev); drv->remove(sysdev);
} }
list_del_init(&sysdev->entry);
up_write(&system_subsys.rwsem); up_write(&system_subsys.rwsem);
kobject_unregister(&sysdev->kobj); kobject_unregister(&sysdev->kobj);
......
...@@ -72,7 +72,6 @@ struct sys_device { ...@@ -72,7 +72,6 @@ struct sys_device {
u32 id; u32 id;
struct sysdev_class * cls; struct sysdev_class * cls;
struct kobject kobj; struct kobject kobj;
struct list_head entry;
}; };
extern int sys_device_register(struct sys_device *); extern int sys_device_register(struct sys_device *);
......
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