diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2018-07-03 19:11:52 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-13 12:26:48 +0200 |
commit | 03af91242c36f225c6fa79e143fad5f4c3624a46 (patch) | |
tree | 09d23031e0d2fa66201da18557e9ae420552c628 /drivers/crypto/ccp/psp-dev.c | |
parent | crypto: ccp - Add psp enabled message when initialization succeeds (diff) | |
download | linux-03af91242c36f225c6fa79e143fad5f4c3624a46.tar.xz linux-03af91242c36f225c6fa79e143fad5f4c3624a46.zip |
crypto: ccp - Remove unused #defines
Remove some unused #defines for register offsets that are not used. This
will lessen the changes required when register offsets change between
versions of the device.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/psp-dev.c')
-rw-r--r-- | drivers/crypto/ccp/psp-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c index 91ef6ed2fea2..875756dd9024 100644 --- a/drivers/crypto/ccp/psp-dev.c +++ b/drivers/crypto/ccp/psp-dev.c @@ -65,7 +65,7 @@ static irqreturn_t psp_irq_handler(int irq, void *data) status = ioread32(psp->io_regs + PSP_P2CMSG_INTSTS); /* Check if it is command completion: */ - if (!(status & BIT(PSP_CMD_COMPLETE_REG))) + if (!(status & PSP_CMD_COMPLETE)) goto done; /* Check if it is SEV command completion: */ |