struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id) 
struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id, struct device *parent) 
struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id){	struct of_device *dev;	u32 *reg;	dev = kmalloc(sizeof(*dev), GFP_KERNEL);	if (!dev)		return NULL;	memset(dev, 0, sizeof(*dev));	dev->node = of_node_get(np);	dev->dma_mask = 0xffffffffUL;	dev->dev.dma_mask = &dev->dma_mask;	dev->dev.parent = NULL;	dev->dev.bus = &of_platform_bus_type;	dev->dev.release = of_release_dev;	reg = (u32 *)get_property(np, "reg", NULL);	strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE);	if (of_device_register(dev) != 0) {		kfree(dev);		return NULL;	}	return dev;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0365ba7fb1fa94a41289d6a3d36b4d95960e56cc/of_device.c/clean/arch/ppc/syslib/of_device.c