Skip to content

Commit

Permalink
tpm xen: Remove bogus tpm_chip_unregister
Browse files Browse the repository at this point in the history
tpm_chip_unregister can only be called after tpm_chip_register.
devm manages the allocation so no unwind is needed here.

Cc: [email protected]
Fixes: afb5abc ("tpm: two-phase chip management functions")
Reviewed-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
  • Loading branch information
jgunthorpe authored and Jarkko Sakkinen committed Nov 27, 2016
1 parent d1d253c commit 1f0f30e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/char/tpm/xen-tpmfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
rv = setup_ring(dev, priv);
if (rv) {
chip = dev_get_drvdata(&dev->dev);
tpm_chip_unregister(chip);
ring_free(priv);
return rv;
}
Expand Down

0 comments on commit 1f0f30e

Please sign in to comment.