Commit dc4c65da authored by Patrick Mochel's avatar Patrick Mochel

Make sure we do to_dev(node) in device_suspend().

parent 3a245026
...@@ -35,7 +35,7 @@ int device_suspend(u32 state, u32 level) ...@@ -35,7 +35,7 @@ int device_suspend(u32 state, u32 level)
spin_lock(&device_lock); spin_lock(&device_lock);
list_for_each(node,&device_root.g_list) { list_for_each(node,&device_root.g_list) {
struct device * dev = get_device_locked(dev); struct device * dev = get_device_locked(to_dev(node));
if (dev) { if (dev) {
spin_unlock(&device_lock); spin_unlock(&device_lock);
if (dev->driver && dev->driver->suspend) if (dev->driver && dev->driver->suspend)
......
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