On Tue, Sep 15, 2026 at 10:12:58PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <[email protected]>
> 
> Changing to DEFINE_SIMPLE_DEV_PM_OPS() broke here because the
> tpm_inf_resume() function is hidden in an #ifdef:
> 
> drivers/char/tpm/tpm_infineon.c:615:61: error: 'tpm_inf_resume' undeclared 
> here (not in a function); did you mean 'tpm_pm_resume'?
>   615 | static DEFINE_SIMPLE_DEV_PM_OPS(tpm_inf_pm, tpm_pm_suspend, 
> tpm_inf_resume);
>       |                                                             
> ^~~~~~~~~~~~~~
> 
> Remove the #ifdef check.
> 
> Fixes: 2249200ee420 ("tpm: use DEFINE_SIMPLE_DEV_PM_OPS and pm_sleep_ptr()")
> Signed-off-by: Arnd Bergmann <[email protected]>

I hit the same issue during my build tests. Thanks for your patch.

Tested-by: Uwe Kleine-König <[email protected]>

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature

Reply via email to