Commit 5eda515d authored by Patrick Mochel's avatar Patrick Mochel

unlock the right lock in enum_device.

parent 107b218e
...@@ -40,7 +40,7 @@ static void enum_device(struct device_class * cls, struct device * dev) ...@@ -40,7 +40,7 @@ static void enum_device(struct device_class * cls, struct device * dev)
u32 val; u32 val;
spin_lock(&device_lock); spin_lock(&device_lock);
val = cls->devnum++; val = cls->devnum++;
write_unlock(&device_lock); spin_unlock(&device_lock);
dev->class_num = val; dev->class_num = val;
devclass_dev_link(cls,dev); devclass_dev_link(cls,dev);
} }
......
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