Skip to content

Commit 0a3f9a6

Browse files
committed
Merge tag 'thermal-6.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more thermal control updates from Rafael Wysocki: "These fix two issues in the Intel thermal control drivers. Specifics: - Fix an error pointer dereference in the quark_dts Intel thermal driver (Dan Carpenter) - Fix the intel_bxt_pmic_thermal driver Kconfig entry to select REGMAP which is not user-visible instead of depending on it (Randy Dunlap)" * tag 'thermal-6.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal: intel: BXT_PMIC: select REGMAP instead of depending on it thermal: intel: quark_dts: fix error pointer dereference
2 parents 44b6f56 + 1467fb9 commit 0a3f9a6

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

drivers/thermal/intel/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ endmenu
7373

7474
config INTEL_BXT_PMIC_THERMAL
7575
tristate "Intel Broxton PMIC thermal driver"
76-
depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP
76+
depends on X86 && INTEL_SOC_PMIC_BXTWC
77+
select REGMAP
7778
help
7879
Select this driver for Intel Broxton PMIC with ADC channels monitoring
7980
system temperature measurements and alerts.

drivers/thermal/intel/intel_quark_dts_thermal.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -400,22 +400,14 @@ MODULE_DEVICE_TABLE(x86cpu, qrk_thermal_ids);
400400

401401
static int __init intel_quark_thermal_init(void)
402402
{
403-
int err = 0;
404-
405403
if (!x86_match_cpu(qrk_thermal_ids) || !iosf_mbi_available())
406404
return -ENODEV;
407405

408406
soc_dts = alloc_soc_dts();
409-
if (IS_ERR(soc_dts)) {
410-
err = PTR_ERR(soc_dts);
411-
goto err_free;
412-
}
407+
if (IS_ERR(soc_dts))
408+
return PTR_ERR(soc_dts);
413409

414410
return 0;
415-
416-
err_free:
417-
free_soc_dts(soc_dts);
418-
return err;
419411
}
420412

421413
static void __exit intel_quark_thermal_exit(void)

0 commit comments

Comments
 (0)