return -ENODEV;  prop = (u32 *)get_property(np, "hwsensor-params-version", NULL); printk(KERN_INFO "adt746x: version %d (%ssupported)\n", *prop, (*prop == 1)?"":"un"); if (*prop != 1) 
thermostat_init(void){	struct device_node* np;	u32 *prop;		np = of_find_node_by_name(NULL, "fan");	if (!np)		return -ENODEV;	if (device_is_compatible(np, "adt7460"))		therm_type = ADT7460;	else if (device_is_compatible(np, "adt7467"))		therm_type = ADT7467;	else		return -ENODEV;	prop = (u32 *)get_property(np, "reg", NULL);	if (!prop)		return -ENODEV;	/* look for bus either by path or using "reg" */	if (strstr(np->full_name, "/i2c-bus@") != NULL) {		const char *tmp_bus = (strstr(np->full_name, "/i2c-bus@") + 9);		therm_bus = tmp_bus[0]-'0';	} else {		therm_bus = ((*prop) >> 8) & 0x0f;	}	therm_address = ((*prop) & 0xff) >> 1;	printk(KERN_INFO "adt746x: Thermostat bus: %d, address: 0x%02x, "			 "limit_adjust: %d, fan_speed: %d\n",			 therm_bus, therm_address, limit_adjust, fan_speed);	of_dev = of_platform_device_create(np, "temperatures");		if (of_dev == NULL) {		printk(KERN_ERR "Can't register temperatures device !\n");		return -ENODEV;	}		device_create_file(&of_dev->dev, &dev_attr_cpu_temperature);	device_create_file(&of_dev->dev, &dev_attr_gpu_temperature);	device_create_file(&of_dev->dev, &dev_attr_cpu_limit);	device_create_file(&of_dev->dev, &dev_attr_gpu_limit);	device_create_file(&of_dev->dev, &dev_attr_limit_adjust);	device_create_file(&of_dev->dev, &dev_attr_specified_fan_speed);	device_create_file(&of_dev->dev, &dev_attr_cpu_fan_speed);	if(therm_type == ADT7460)		device_create_file(&of_dev->dev, &dev_attr_gpu_fan_speed);#ifndef CONFIG_I2C_KEYWEST	request_module("i2c-keywest");#endif	return i2c_add_driver(&thermostat_driver);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a8bacec09352b86bd389cc93a20008577fa14764/therm_adt746x.c/clean/drivers/macintosh/therm_adt746x.c