ACPI:Fix goto flows in thermal-sys
authorDurgadoss R <durgadoss.r@intel.com>
Wed, 2 Mar 2011 23:00:13 +0000 (04:00 +0530)
committerLen Brown <len.brown@intel.com>
Wed, 23 Mar 2011 05:43:44 +0000 (01:43 -0400)
commitb299eb5cde1a91706c450804006c6559b0826df8
treee0007358f68edad3d435ce81ed2e4ce30c74cff1
parent521cb40b0c44418a4fd36dc633f575813d59a43d
ACPI:Fix goto flows in thermal-sys

This patch fixes two minor bugs in thermal_sys:
(a) The flow of goto's in thermal_hwmon_add_sysfs.
(b) Remove the temp*_crit only if there is a get_crit_temp defined, in
    thermal_remove_hwmon_sysfs.

Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal_sys.c