iface = kmalloc(sizeof(struct smu_iface), GFP_KERNEL); 
iface = kzalloc(sizeof(struct smu_iface), GFP_KERNEL); 
static int create_iface(struct device_node *np, struct device *dev){	struct smu_iface* iface;	u32 *reg, busid;	int rc;	reg = (u32 *)get_property(np, "reg", NULL);	if (reg == NULL) {		printk(KERN_ERR "i2c-pmac-smu: can't find bus number !\n");		return -ENXIO;	}	busid = *reg;	iface = kmalloc(sizeof(struct smu_iface), GFP_KERNEL);	if (iface == NULL) {		printk(KERN_ERR "i2c-pmac-smu: can't allocate inteface !\n");		return -ENOMEM;	}	memset(iface, 0, sizeof(struct smu_iface));	init_completion(&iface->complete);	iface->busid = busid;	dev_set_drvdata(dev, iface);	sprintf(iface->adapter.name, "smu-i2c-%02x", busid);	iface->adapter.algo = &smu_algorithm;	iface->adapter.algo_data = NULL;	iface->adapter.client_register = NULL;	iface->adapter.client_unregister = NULL;	i2c_set_adapdata(&iface->adapter, iface);	iface->adapter.dev.parent = dev;	rc = i2c_add_adapter(&iface->adapter);	if (rc) {		printk(KERN_ERR "i2c-pamc-smu.c: Adapter %s registration "		       "failed\n", iface->adapter.name);		i2c_set_adapdata(&iface->adapter, NULL);	}	if (probe) {		unsigned char addr;		printk("Probe: ");		for (addr = 0x00; addr <= 0x7f; addr++) {			if (i2c_smbus_xfer(&iface->adapter,addr,					   0,0,0,I2C_SMBUS_QUICK,NULL) >= 0)				printk("%02x ", addr);		}		printk("\n");	}	printk(KERN_INFO "SMU i2c bus %x registered\n", busid);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/5263ebb51eb098b01caf229498c954999117e4a7/i2c-pmac-smu.c/buggy/drivers/i2c/busses/i2c-pmac-smu.c