dev_dbg(&adap->dev, "Registered as minor %d\n", i2c_dev->minor); 
pr_debug("i2c-dev: adapter [%s] registered as minor %d\n", adap->name, i2c_dev->minor); 
static int i2cdev_attach_adapter(struct i2c_adapter *adap){	struct i2c_dev *i2c_dev;	int retval;	i2c_dev = get_free_i2c_dev(adap);	if (IS_ERR(i2c_dev))		return PTR_ERR(i2c_dev);	devfs_mk_cdev(MKDEV(I2C_MAJOR, i2c_dev->minor),			S_IFCHR|S_IRUSR|S_IWUSR, "i2c/%d", i2c_dev->minor);	dev_dbg(&adap->dev, "Registered as minor %d\n", i2c_dev->minor);	/* register this i2c device with the driver core */	i2c_dev->adap = adap;	if (adap->dev.parent == &platform_bus)		i2c_dev->class_dev.dev = &adap->dev;	else		i2c_dev->class_dev.dev = adap->dev.parent;	i2c_dev->class_dev.class = &i2c_dev_class;	i2c_dev->class_dev.devt = MKDEV(I2C_MAJOR, i2c_dev->minor);	snprintf(i2c_dev->class_dev.class_id, BUS_ID_SIZE, "i2c-%d", i2c_dev->minor);	retval = class_device_register(&i2c_dev->class_dev);	if (retval)		goto error;	class_device_create_file(&i2c_dev->class_dev, &class_device_attr_name);	return 0;error:	return_i2c_dev(i2c_dev);	kfree(i2c_dev);	return retval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b6d7b3d1b5a388b7e9af2629a9ecccedee064078/i2c-dev.c/buggy/drivers/i2c/i2c-dev.c