From: Michal Simek Date: Fri, 6 Nov 2020 14:05:57 +0000 (+0100) Subject: tpm: spi: Cleanup source code X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d99f163792089f85d57dad5c63db12a5017766c1;p=u-boot.git tpm: spi: Cleanup source code There is no need for GD to be used and priv variable is unused. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c index 9a8145e6ba..0045bedf0c 100644 --- a/drivers/tpm/tpm2_tis_spi.c +++ b/drivers/tpm/tpm2_tis_spi.c @@ -30,8 +30,6 @@ #include "tpm_tis.h" #include "tpm_internal.h" -DECLARE_GLOBAL_DATA_PTR; - #define TPM_ACCESS(l) (0x0000 | ((l) << 12)) #define TPM_INT_ENABLE(l) (0x0008 | ((l) << 12)) #define TPM_STS(l) (0x0018 | ((l) << 12)) @@ -520,7 +518,6 @@ static int tpm_tis_spi_cleanup(struct udevice *dev) static int tpm_tis_spi_open(struct udevice *dev) { struct tpm_chip *chip = dev_get_priv(dev); - struct tpm_chip_priv *priv = dev_get_uclass_priv(dev); if (chip->is_open) return -EBUSY;