]> err.no Git - linux-2.6/blobdiff - drivers/acpi/fan.c
[S390] xpram off by one error.
[linux-2.6] / drivers / acpi / fan.c
index a56acdb37296d8f2cfc71adf30c396c4d0eec628..045c89477e59b2929f125ac536226928e949a73a 100644 (file)
@@ -64,7 +64,6 @@ static struct acpi_driver acpi_fan_driver = {
 };
 
 struct acpi_fan {
-       acpi_handle handle;
        struct acpi_device * device;
 };
 
@@ -121,7 +120,7 @@ acpi_fan_write_state(struct file *file, const char __user * buffer,
        return count;
 }
 
-static struct file_operations acpi_fan_state_ops = {
+static const struct file_operations acpi_fan_state_ops = {
        .open = acpi_fan_state_open_fs,
        .read = seq_read,
        .write = acpi_fan_write_state,
@@ -192,7 +191,6 @@ static int acpi_fan_add(struct acpi_device *device)
                return -ENOMEM;
        memset(fan, 0, sizeof(struct acpi_fan));
 
-       fan->handle = device->handle;
        fan->device = device;
        strcpy(acpi_device_name(device), "Fan");
        strcpy(acpi_device_class(device), ACPI_FAN_CLASS);