diff options
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | 2016-10-26 22:28:45 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-06 09:40:17 (GMT) |
commit | b7bbf06c21aac5c91d3c7f73db291648232dfb39 (patch) | |
tree | ccb846d9781e8f2697a8261215c96e798137ee45 /drivers | |
parent | f726f4f411f9094a3901fb35985f070c0fdec5b2 (diff) | |
download | linux-b7bbf06c21aac5c91d3c7f73db291648232dfb39.tar.xz |
tpm xen: Remove bogus tpm_chip_unregister
commit 1f0f30e404b3d8f4597a2d9b77fba55452f8fd0e upstream.
tpm_chip_unregister can only be called after tpm_chip_register.
devm manages the allocation so no unwind is needed here.
Fixes: afb5abc262e96 ("tpm: two-phase chip management functions")
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/tpm/xen-tpmfront.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/tpm/xen-tpmfront.c b/drivers/char/tpm/xen-tpmfront.c index 62028f4..a2ab008 100644 --- a/drivers/char/tpm/xen-tpmfront.c +++ b/drivers/char/tpm/xen-tpmfront.c @@ -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; } |