|
@@ -175,19 +175,17 @@ static int intel_menlow_memory_add(struct acpi_device *device)
|
|
goto end;
|
|
goto end;
|
|
}
|
|
}
|
|
|
|
|
|
- if (cdev) {
|
|
|
|
- acpi_driver_data(device) = cdev;
|
|
|
|
- result = sysfs_create_link(&device->dev.kobj,
|
|
|
|
- &cdev->device.kobj, "thermal_cooling");
|
|
|
|
- if (result)
|
|
|
|
- goto unregister;
|
|
|
|
-
|
|
|
|
- result = sysfs_create_link(&cdev->device.kobj,
|
|
|
|
- &device->dev.kobj, "device");
|
|
|
|
- if (result) {
|
|
|
|
- sysfs_remove_link(&device->dev.kobj, "thermal_cooling");
|
|
|
|
- goto unregister;
|
|
|
|
- }
|
|
|
|
|
|
+ acpi_driver_data(device) = cdev;
|
|
|
|
+ result = sysfs_create_link(&device->dev.kobj,
|
|
|
|
+ &cdev->device.kobj, "thermal_cooling");
|
|
|
|
+ if (result)
|
|
|
|
+ goto unregister;
|
|
|
|
+
|
|
|
|
+ result = sysfs_create_link(&cdev->device.kobj,
|
|
|
|
+ &device->dev.kobj, "device");
|
|
|
|
+ if (result) {
|
|
|
|
+ sysfs_remove_link(&device->dev.kobj, "thermal_cooling");
|
|
|
|
+ goto unregister;
|
|
}
|
|
}
|
|
|
|
|
|
end:
|
|
end:
|