diff options
author | Durgadoss R <durgadoss.r@intel.com> | 2012-09-18 11:04:56 +0530 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2012-11-05 13:59:57 +0800 |
commit | 50125a9b27dd09e9afdc1b8712ba0b3859886c68 (patch) | |
tree | dfd4e7ea8eb792fb725a3528ec929125c2432ea3 /drivers/power | |
parent | ef87394791206019e4e4e04cb746865f2dc115ed (diff) |
Thermal: Pass zone parameters as argument to tzd_register
This patch adds the thermal zone parameter as an argument to
the tzd_register() function call; and updates other drivers
using this function.
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/power_supply_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index 2436f135001..f77a41272e5 100644 --- a/drivers/power/power_supply_core.c +++ b/drivers/power/power_supply_core.c @@ -201,7 +201,7 @@ static int psy_register_thermal(struct power_supply *psy) for (i = 0; i < psy->num_properties; i++) { if (psy->properties[i] == POWER_SUPPLY_PROP_TEMP) { psy->tzd = thermal_zone_device_register(psy->name, 0, 0, - psy, &psy_tzd_ops, 0, 0); + psy, &psy_tzd_ops, NULL, 0, 0); if (IS_ERR(psy->tzd)) return PTR_ERR(psy->tzd); break; |