Name

platform_device_alloc — create a platform device

Synopsis

struct platform_device * platform_device_alloc (const char * name,
 int id);
 

Arguments

name

base name of the device we're adding

id

instance id

Description

Create a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.