]> Git Repo - linux.git/blobdiff - drivers/power/supply/power_supply_core.c
Merge tag 'modules-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof...
[linux.git] / drivers / power / supply / power_supply_core.c
index 8a6046d3808d40168894860e9eeb1fc49ce0a156..a980d60c437b7ae2111cb2bc7b638bbfb1622c8c 100644 (file)
@@ -1142,7 +1142,7 @@ static int power_supply_read_temp(struct thermal_zone_device *tzd,
        int ret;
 
        WARN_ON(tzd == NULL);
-       psy = tzd->devdata;
+       psy = thermal_zone_device_priv(tzd);
        ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_TEMP, &val);
        if (ret)
                return ret;
@@ -1462,7 +1462,7 @@ EXPORT_SYMBOL_GPL(power_supply_get_drvdata);
 
 static int __init power_supply_class_init(void)
 {
-       power_supply_class = class_create(THIS_MODULE, "power_supply");
+       power_supply_class = class_create("power_supply");
 
        if (IS_ERR(power_supply_class))
                return PTR_ERR(power_supply_class);
This page took 0.032441 seconds and 4 git commands to generate.