Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86117
b: refs/heads/master
c: 69f6b8d
h: refs/heads/master
i:
  86115: 26b6761
v: v3
  • Loading branch information
Thomas Sujith authored and Len Brown committed Feb 15, 2008
1 parent d4d7d8a commit 6931624
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43ff39f2f6450fa2e9a566f8bf007a26d76f2c9d
refs/heads/master: 69f6b8dd6b94ac594b6920b4530a3390fb1d3fd6
11 changes: 7 additions & 4 deletions trunk/drivers/misc/intel_menlow.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@ static int intel_menlow_memory_add(struct acpi_device *device)

cdev = thermal_cooling_device_register("Memory controller", device,
&memory_cooling_ops);
acpi_driver_data(device) = cdev;
if (!cdev)
result = -ENODEV;
else {
if (IS_ERR(cdev)) {
result = PTR_ERR(cdev);
goto end;
}

if (cdev) {
acpi_driver_data(device) = cdev;
result = sysfs_create_link(&device->dev.kobj,
&cdev->device.kobj, "thermal_cooling");
if (result)
Expand Down

0 comments on commit 6931624

Please sign in to comment.