Name

of_platform_device_create — Alloc, initialize and register a platform device

Synopsis

struct platform_device * of_platform_device_create (struct device_node * np,
 const char * bus_id,
 struct device * parent);
 

Arguments

np

Pointer to node to create device for

bus_id

NULL or name to assign to the device

parent

Linux device model parent device.

Description

Similar to of_platform_device_create_pdata except platform_data is NULL.

Unavailable devices will not get registered.

Also see

of_platform_device_create_pdata

Return

pointer to created platform device, NULL if a device was not registered.