.\" 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 "PLATFORM_DEVICE_REGISTER_SIMPLE" "9" "09 October 2005" "" ""
.SH NAME
platform_device_register_simple \-
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct platform_device * platform_device_register_simple (char * \fIname\fB, unsigned int \fIid\fB, struct resource * \fIres\fB, unsigned int \fInum\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIname\fB\fR
base name of the device we're adding
.TP
\fB\fIid\fB\fR
instance id
.TP
\fB\fIres\fB\fR
set of resources that needs to be allocated for the device
.TP
\fB\fInum\fB\fR
number of resources
.SH "DESCRIPTION"
.PP
This function creates a simple platform device that requires minimal
resource and memory management. Canned release function freeing
memory allocated for the device allows drivers using such devices
to be unloaded iwithout waiting for the last reference to the device
to be dropped.