mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 23:36:57 +07:00
platform/x86: intel_mid_thermal: Fix suspend handlers unused warning
Fix: drivers/platform/x86/intel_mid_thermal.c:424:12: warning: ‘mid_thermal_resume’ defined but not used [-Wunused-function] static int mid_thermal_resume(struct device *dev) ^ drivers/platform/x86/intel_mid_thermal.c:436:12: warning: ‘mid_thermal_suspend’ defined but not used [-Wunused-function] static int mid_thermal_suspend(struct device *dev) ^ which I see during randbuilds here. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Darren Hart <dvhart@infradead.org> Cc: platform-driver-x86@vger.kernel.org Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
bb9ad48484
commit
b4aca383f9
@ -415,6 +415,7 @@ static struct thermal_device_info *initialize_sensor(int index)
|
|||||||
return td_info;
|
return td_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM_SLEEP
|
||||||
/**
|
/**
|
||||||
* mid_thermal_resume - resume routine
|
* mid_thermal_resume - resume routine
|
||||||
* @dev: device structure
|
* @dev: device structure
|
||||||
@ -442,6 +443,7 @@ static int mid_thermal_suspend(struct device *dev)
|
|||||||
*/
|
*/
|
||||||
return configure_adc(0);
|
return configure_adc(0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static SIMPLE_DEV_PM_OPS(mid_thermal_pm,
|
static SIMPLE_DEV_PM_OPS(mid_thermal_pm,
|
||||||
mid_thermal_suspend, mid_thermal_resume);
|
mid_thermal_suspend, mid_thermal_resume);
|
||||||
|
Loading…
Reference in New Issue
Block a user