dev_dbg(&sl->dev, "%s: registering %s.\n", __func__, &sl->dev.bus_id[0]); 
dev_dbg(&sl->dev, "%s: registering %s as %p.\n", __func__, &sl->dev.bus_id[0]); 
static int __w1_attach_slave_device(struct w1_slave *sl){	int err;	sl->dev.parent = &sl->master->dev;	sl->dev.driver = &w1_slave_driver;	sl->dev.bus = &w1_bus_type;	sl->dev.release = &w1_slave_release;	snprintf(&sl->dev.bus_id[0], sizeof(sl->dev.bus_id),		 "%02x-%012llx",		 (unsigned int) sl->reg_num.family,		 (unsigned long long) sl->reg_num.id);	snprintf(&sl->name[0], sizeof(sl->name),		 "%02x-%012llx",		 (unsigned int) sl->reg_num.family,		 (unsigned long long) sl->reg_num.id);	dev_dbg(&sl->dev, "%s: registering %s.\n", __func__,		&sl->dev.bus_id[0]);	err = device_register(&sl->dev);	if (err < 0) {		dev_err(&sl->dev,			"Device registration [%s] failed. err=%d\n",			sl->dev.bus_id, err);		return err;	}	/* Create "name" entry */	err = device_create_file(&sl->dev, &w1_slave_attr_name);	if (err < 0) {		dev_err(&sl->dev,			"sysfs file creation for [%s] failed. err=%d\n",			sl->dev.bus_id, err);		goto out_unreg;	}	/* Create "id" entry */	err = sysfs_create_bin_file(&sl->dev.kobj, &w1_slave_attr_bin_id);	if (err < 0) {		dev_err(&sl->dev,			"sysfs file creation for [%s] failed. err=%d\n",			sl->dev.bus_id, err);		goto out_rem1;	}	/* if the family driver needs to initialize something... */	if (sl->family->fops && sl->family->fops->add_slave &&	    ((err = sl->family->fops->add_slave(sl)) < 0)) {		dev_err(&sl->dev,			"sysfs file creation for [%s] failed. err=%d\n",			sl->dev.bus_id, err);		goto out_rem2;	}	list_add_tail(&sl->w1_slave_entry, &sl->master->slist);	return 0;out_rem2:	sysfs_remove_bin_file(&sl->dev.kobj, &w1_slave_attr_bin_id);out_rem1:	device_remove_file(&sl->dev, &w1_slave_attr_name);out_unreg:	device_unregister(&sl->dev);	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/3aca692d3ec7cf89da4575f598e41f74502b22d7/w1.c/buggy/drivers/w1/w1.c