/* Initialize the state structure for the drives bay fan control loop  */
static int init_drives_state(struct drives_pid_state *state)
/* Initialize the state structure for the drives bay fan control loop  */
static int init_drives_state(struct drives_pid_state *state)
{
	int err;
	state->ticks = 1;
	state->first = 1;
	state->rpm = 1000;
	state->monitor = attach_i2c_chip(DRIVES_DALLAS_ID, "drives_temp");
	if (state->monitor == NULL)
		return -ENODEV;
	err = device_create_file(&of_dev->dev, &dev_attr_drives_temperature);
	err |= device_create_file(&of_dev->dev, &dev_attr_drives_fan_rpm);
	if (err)
		printk(KERN_WARNING "Failed to create attribute file(s)"
			" for drives bay fan\n");
	return 0;
}