Merge tag 'thermal-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[sfrench/cifs-2.6.git] / drivers / thermal / intel / x86_pkg_temp_thermal.c
index 22a1e3268a989d7c99094e3a669db41feeeb2e78..c0ca8e3ff2e78c137220a50076c0ee4d2544e391 100644 (file)
@@ -483,7 +483,7 @@ static int __init pkg_temp_thermal_init(void)
        if (!x86_match_cpu(pkg_temp_thermal_ids))
                return -ENODEV;
 
-       max_id = topology_max_packages() * topology_max_die_per_package();
+       max_id = topology_max_packages() * topology_max_dies_per_package();
        zones = kcalloc(max_id, sizeof(struct zone_device *),
                           GFP_KERNEL);
        if (!zones)