Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291767
b: refs/heads/master
c: 4e70daa
h: refs/heads/master
i:
  291765: fe2281b
  291763: db677bc
  291759: 66f35e2
v: v3
  • Loading branch information
Jiri Kosina committed Mar 5, 2012
1 parent 8c50b97 commit 400536b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3363c912ba743e6f981ba58c744e413fc41f943
refs/heads/master: 4e70daaf05a181b6968e29e72e9f1c16a183e92c
10 changes: 5 additions & 5 deletions trunk/drivers/char/tpm/tpm_tis.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ enum tis_defaults {
#define TPM_RID(l) (0x0F04 | ((l) << 12))

static LIST_HEAD(tis_chips);
static DEFINE_SPINLOCK(tis_lock);
static DEFINE_MUTEX(tis_lock);

#if defined(CONFIG_PNP) && defined(CONFIG_ACPI)
static int is_itpm(struct pnp_dev *dev)
Expand Down Expand Up @@ -689,9 +689,9 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
}

INIT_LIST_HEAD(&chip->vendor.list);
spin_lock(&tis_lock);
mutex_lock(&tis_lock);
list_add(&chip->vendor.list, &tis_chips);
spin_unlock(&tis_lock);
mutex_unlock(&tis_lock);


return 0;
Expand Down Expand Up @@ -855,7 +855,7 @@ static void __exit cleanup_tis(void)
{
struct tpm_vendor_specific *i, *j;
struct tpm_chip *chip;
spin_lock(&tis_lock);
mutex_lock(&tis_lock);
list_for_each_entry_safe(i, j, &tis_chips, list) {
chip = to_tpm_chip(i);
tpm_remove_hardware(chip->dev);
Expand All @@ -871,7 +871,7 @@ static void __exit cleanup_tis(void)
iounmap(i->iobase);
list_del(&i->list);
}
spin_unlock(&tis_lock);
mutex_unlock(&tis_lock);
#ifdef CONFIG_PNP
if (!force) {
pnp_unregister_driver(&tis_pnp_driver);
Expand Down

0 comments on commit 400536b

Please sign in to comment.