host->base = (unsigned long)ioremap(np->addrs[0].address + aoffset, 
host->base = ioremap(np->addrs[0].address + aoffset, 
static void keywest_low_i2c_add(struct device_node *np){	struct low_i2c_host	*host = find_low_i2c_host(NULL);	unsigned long		*psteps, *prate, steps, aoffset = 0;	struct device_node	*parent;	if (host == NULL) {		printk(KERN_ERR "low_i2c: Can't allocate host for %s\n",		       np->full_name);		return;	}	memset(host, 0, sizeof(*host));	init_MUTEX(&host->mutex);	host->np = of_node_get(np);		psteps = (unsigned long *)get_property(np, "AAPL,address-step", NULL);	steps = psteps ? (*psteps) : 0x10;	for (host->bsteps = 0; (steps & 0x01) == 0; host->bsteps++)		steps >>= 1;	parent = of_get_parent(np);	host->num_channels = 1;	if (parent && parent->name[0] == 'u') {		host->num_channels = 2;		aoffset = 3;	}	/* Select interface rate */	host->speed = KW_I2C_MODE_100KHZ;	prate = (unsigned long *)get_property(np, "AAPL,i2c-rate", NULL);	if (prate) switch(*prate) {	case 100:		host->speed = KW_I2C_MODE_100KHZ;		break;	case 50:		host->speed = KW_I2C_MODE_50KHZ;		break;	case 25:		host->speed = KW_I2C_MODE_25KHZ;		break;	}		host->mode = pmac_low_i2c_mode_std;	host->base = (unsigned long)ioremap(np->addrs[0].address + aoffset,						np->addrs[0].size);	host->func = keywest_low_i2c_func;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/d01daf72f0a238c5ccfba7bf82999e384927412e/pmac_low_i2c.c/clean/arch/ppc/platforms/pmac_low_i2c.c