.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "DEVICE_UNREGISTER" "" "06 October 2005" "" "" .SH NAME device_unregister \- unregister device from system. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void device_unregister (struct device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR device going away. .SH "DESCRIPTION" .PP We do this in two parts, like we do \fBdevice_register\fR\&. First, we remove it from all the subsystems with \fBdevice_del\fR, then we decrement the reference count via \fBput_device\fR\&. If that is the final reference count, the device will be cleaned up via \fBdevice_release\fR above. Otherwise, the structure will stick around until the final reference to the device is dropped.