/* Initialize the state structure for the slots bay fan control loop  */
static int init_slots_state(struct slots_pid_state *state)
/* Initialize the state structure for the slots bay fan control loop  */
static int init_slots_state(struct slots_pid_state *state)
{
	int err;
	state->ticks = 1;
	state->first = 1;
	state->pwm = 50;
	state->monitor = attach_i2c_chip(XSERVE_SLOTS_LM75, "slots_temp");
	if (state->monitor == NULL)
		return -ENODEV;
	err = device_create_file(&of_dev->dev, &dev_attr_slots_temperature);
	err |= device_create_file(&of_dev->dev, &dev_attr_slots_fan_pwm);
	if (err)
		printk(KERN_WARNING "Failed to create attribute file(s)"
			" for slots bay fan\n");
	return 0;
}