mirror-linux/drivers/platform/x86/intel
Alok Tiwari 66e245db16
platform/x86/intel/pmt/discovery: use valid device pointer in dev_err_probe
The PMT feature probe creates a child device with device_create().
If device creation fail, the code pass priv->dev (which is an ERR_PTR)
to dev_err_probe(), which is not a valid device pointer.

This patch change the dev_err_probe() call to use the parent auxiliary
device (&auxdev->dev) and update the error message to reference the
parent device name. It ensure correct error reporting and avoid
passing an invalid device pointer.

Fixes: d9a0788093 ("platform/x86/intel/pmt: Add PMT Discovery driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20251224095133.115678-1-alok.a.tiwari@oracle.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2025-12-29 17:22:44 +02:00
..
atomisp2
ifs x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
int1092 platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
int3472 platform-drivers-x86 for v6.18-3 2025-11-05 11:08:10 -08:00
pmc platform/x86:intel/pmc: Enable SSRAM support for Wildcat Lake 2025-11-07 18:49:40 +02:00
pmt platform/x86/intel/pmt/discovery: use valid device pointer in dev_err_probe 2025-12-29 17:22:44 +02:00
speed_select_if platform/x86/intel/speed_select_if: Convert PCIBIOS_* return codes to errnos 2025-11-18 09:35:12 +02:00
telemetry platform/x86: intel_telemetry: Remove unused telemetry_raw_read_events() 2025-06-11 10:56:06 +03:00
uncore-frequency platform/x86: intel-uncore-freq: fix all header kernel-doc warnings 2025-11-18 09:37:21 +02:00
wmi
Kconfig platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
Makefile platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
bxtwc_tmu.c - Several drivers, including atmel-flexcom/rk8xx-core, palmas, and 2024-11-22 16:19:47 -08:00
bytcrc_pwrsrc.c platform/x86/intel: bytcrc_pwrsrc: Optionally register a power_supply dev 2024-12-10 15:29:37 +02:00
chtdc_ti_pwrbtn.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
chtwc_int33fe.c platform/x86: intel: chtwc_int33fe: don't dereference swnode args 2025-11-21 15:31:43 +01:00
crystal_cove_charger.c
ehl_pse_io.c platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
hid.c Merge branch 'fixes' of into for-next 2025-12-01 11:53:59 +02:00
int0002_vgpio.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
ishtp_eclite.c
mrfld_pwrbtn.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
oaktrail.c
plr_tpmi.c platform/x86/intel/tpmi: Relocate platform info to intel_vsec.h 2025-07-03 11:09:35 +03:00
punit_ipc.c platform/x86: intel: punit_ipc: fix memory corruption 2025-11-24 15:03:22 +02:00
rst.c
sdsi.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
smartconnect.c
tpmi_power_domains.c x86/cpu: Rename and move CPU model entry for Diamond Rapids 2025-09-17 11:22:11 +02:00
tpmi_power_domains.h platform/x86/intel: power-domains: Add interface to get Linux die ID 2025-05-15 14:47:25 +03:00
turbo_max_3.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
vbtn.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
vsec.c platform/x86/intel/vsec: Add support for Wildcat Lake 2025-11-07 18:49:37 +02:00
vsec_tpmi.c platform/x86/intel/tpmi: Get OOBMSM CPU mapping from TPMI 2025-07-03 11:09:38 +03:00