diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c index a3210f09f366e2506d77c345c9c96bf7c9cd3af4..77dae1e7c3bf644c647607e6cad4166beebc42a9 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c @@ -443,6 +443,7 @@ static void proc_thermal_pci_remove(struct pci_dev *pdev) pci_disable_device(pdev); } +#ifdef CONFIG_PM_SLEEP static int proc_thermal_resume(struct device *dev) { struct proc_thermal_device *proc_dev; @@ -452,6 +453,9 @@ static int proc_thermal_resume(struct device *dev) return 0; } +#else +#define proc_thermal_resume NULL +#endif static SIMPLE_DEV_PM_OPS(proc_thermal_pm, NULL, proc_thermal_resume);