of_device_alloc — Allocate and initialize a platform device
struct platform_device * of_device_alloc ( | struct device_node * np, |
const char * bus_id, | |
struct device * parent) ; |
np
Pointer to device node to assign to device
bus_id
NULL or name to assign to the device
parent
Parent device