Krzysztof Helt bb070e4349 acpi thermal: fix result check
thermal_zone_device_register() uses the ERR_PTR macro on its return values.  A
correct check is to use the IS_ERR() macro.

The 2.6.25 kernels panic on Compaq AP550 without this patch as it has more
then 10 (THERMAL_MAX_TRIPS) trip points (there are 12).

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-08 18:25:52 -07:00
..
2008-02-21 02:01:30 -05:00
2007-05-09 23:34:35 -04:00
2007-08-11 15:47:42 -07:00
2008-03-18 02:31:34 -04:00
2007-02-12 22:42:12 -05:00
2008-02-14 01:04:18 -05:00
2008-02-07 03:33:23 -05:00
2008-02-07 03:33:23 -05:00
2008-02-07 03:33:23 -05:00
2008-02-07 03:33:23 -05:00
2008-03-18 05:13:14 -04:00
2008-04-08 18:25:52 -07:00