Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tpm/st33zp24: Remove useless tpm_gen_interrupt

This function should only be called as part of an IRQ probing protocol
and st33 does not have any code to detect that the IRQ it tries to
generate was not generated and disable the IRQ.

Since st33 is primarily a DT binding driver it should not be doing
IRQ probing anyhow, so let us just delete this useless call.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

authored by

Jason Gunthorpe and committed by
Jarkko Sakkinen
09dd7703 d4816edf

-2
-2
drivers/char/tpm/st33zp24/st33zp24.c
··· 589 589 chip->flags |= TPM_CHIP_FLAG_IRQ; 590 590 591 591 disable_irq_nosync(tpm_dev->irq); 592 - 593 - tpm_gen_interrupt(chip); 594 592 } 595 593 596 594 return tpm_chip_register(chip);