x.of_dev = of_platform_device_create( np, "temperature" ); 
x.of_dev = of_platform_device_create(np, "temperature", NULL); 
g4fan_init( void ){	struct apple_thermal_info *info;	struct device_node *np;	init_MUTEX( &x.lock );	if( !(np=of_find_node_by_name(NULL, "power-mgt")) )		return -ENODEV;	info = (struct apple_thermal_info*)get_property(np, "thermal-info", NULL);	of_node_put(np);	if( !info || !machine_is_compatible("PowerMac3,6") )		return -ENODEV;	if( info->id != 3 ) {		printk(KERN_ERR "therm_windtunnel: unsupported thermal design %d\n", info->id );		return -ENODEV;	}	if( !(np=of_find_node_by_name(NULL, "fan")) )		return -ENODEV;	x.of_dev = of_platform_device_create( np, "temperature" );	of_node_put( np );	if( !x.of_dev ) {		printk(KERN_ERR "Can't register fan controller!\n");		return -ENODEV;	}	of_register_driver( &therm_of_driver );	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0365ba7fb1fa94a41289d6a3d36b4d95960e56cc/therm_windtunnel.c/buggy/drivers/macintosh/therm_windtunnel.c