NULL, 
vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) {	struct device *dev;	int ret;	dev = kmalloc(sizeof(struct device), GFP_KERNEL);	if (dev) {		memset(dev, 0, sizeof(struct device));		snprintf(dev->bus_id, BUS_ID_SIZE, "%s",			 priv->internal_name);		dev->bus = &iucv_bus;		dev->parent = iucv_root;		dev->driver = &vmlogrdr_driver;		/*		 * The release function could be called after the		 * module has been unloaded. It's _only_ task is to		 * free the struct. Therefore, we specify kfree()		 * directly here. (Probably a little bit obfuscating		 * but legitime ...).		 */		dev->release = (void (*)(struct device *))kfree;	} else		return -ENOMEM;	ret = device_register(dev);	if (ret)		return ret;	ret = sysfs_create_group(&dev->kobj, &vmlogrdr_attr_group);	if (ret) {		device_unregister(dev);		return ret;	}	priv->class_device = class_device_create(				vmlogrdr_class,				MKDEV(vmlogrdr_major, priv->minor_num),				dev,				"%s", dev->bus_id );	if (IS_ERR(priv->class_device)) {		ret = PTR_ERR(priv->class_device);		priv->class_device=NULL;		sysfs_remove_group(&dev->kobj, &vmlogrdr_attr_group);		device_unregister(dev);		return ret;	}	dev->driver_data = priv;	priv->device = dev;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/vmlogrdr.c/clean/drivers/s390/char/vmlogrdr.c