driver model: use list_for_each_safe in device_shutdown(), since devices can be
removed from the global list in the process. Also, call put_device() on the last device. Origintally from Andrew Morton.
Showing
Please register or sign in to comment