mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
It should be done before calling class_device_unregister() because it will destroy the device and free memory if there are no other references to the device. Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>