Fix -xen build.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-03-02 16:57:24 +00:00
1 parent 55fcb979e1
commit 8ede8a78de
1 file changed
+3 -3
@@ -437,7 +437,7 @@ static int tpmfront_suspend(struct xenbus_device *dev)
return 0;
}
static int tpmfront_resume(struct tpm_private *tp)
static int tpmfront_suspend_finish(struct tpm_private *tp)
{
tp->is_suspended = 0;
/* Allow applications to send again. */
@@ -448,7 +448,7 @@ static int tpmfront_resume(struct tpm_private *tp)
static int tpmfront_suspend_cancel(struct xenbus_device *dev)
{
struct tpm_private *tp = tpm_private_from_dev(&dev->dev);
return tpmfront_resume(tp);
return tpmfront_suspend_finish(tp);
}
static int tpmfront_resume(struct xenbus_device *dev)
@@ -691,7 +691,7 @@ static void tpmif_set_connected_state(struct tpm_private *tp, u8 is_connected)
* This also removes the suspend state.
*/
if (is_connected == 1 && tp->is_suspended == 1)
tpmfront_resume(tp);
tpmfront_suspend_finish(tp);
if (is_connected != tp->is_connected) {
tp->is_connected = is_connected;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.