Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359765
b: refs/heads/master
c: 6b2aa51
h: refs/heads/master
i:
  359763: 98c98a6
v: v3
  • Loading branch information
Eduardo Valentin authored and Zhang Rui committed Jan 17, 2013
1 parent 349c117 commit f462a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 923e0b1e8dbe0939d9fc41c226dfc5d53884d8c6
refs/heads/master: 6b2aa51d698492e8dc0a0ce6ce5b3193ccaec269
3 changes: 3 additions & 0 deletions trunk/drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,9 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type,
if (!ops || !ops->get_temp)
return ERR_PTR(-EINVAL);

if (trips > 0 && !ops->get_trip_type)
return ERR_PTR(-EINVAL);

tz = kzalloc(sizeof(struct thermal_zone_device), GFP_KERNEL);
if (!tz)
return ERR_PTR(-ENOMEM);
Expand Down

0 comments on commit f462a80

Please sign in to comment.