memset(pobj, 0, sizeof(*pobj)); 
struct platform_device *platform_device_register_simple(char *name, unsigned int id,							struct resource *res, unsigned int num){	struct platform_object *pobj;	int retval;	pobj = kmalloc(sizeof(struct platform_object) + sizeof(struct resource) * num, GFP_KERNEL);	if (!pobj) {		retval = -ENOMEM;		goto error;	}	memset(pobj, 0, sizeof(*pobj));	pobj->pdev.name = name;	pobj->pdev.id = id;	pobj->pdev.dev.release = platform_device_release_simple;	if (num) {		memcpy(pobj->resources, res, sizeof(struct resource) * num);		pobj->pdev.resource = pobj->resources;		pobj->pdev.num_resources = num;	}	retval = platform_device_register(&pobj->pdev);	if (retval)		goto error;	return &pobj->pdev;error:	kfree(pobj);	return ERR_PTR(retval);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/4aed0644d684428e811bb6944f032b460a3ab165/platform.c/clean/drivers/base/platform.c