|
@@ -450,6 +450,11 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
|
|
|
goto out_err;
|
|
|
}
|
|
|
|
|
|
+ if (request_locality(chip, 0) != 0) {
|
|
|
+ rc = -ENODEV;
|
|
|
+ goto out_err;
|
|
|
+ }
|
|
|
+
|
|
|
vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0));
|
|
|
|
|
|
/* Default timeouts */
|
|
@@ -487,11 +492,6 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
|
|
|
if (intfcaps & TPM_INTF_DATA_AVAIL_INT)
|
|
|
dev_dbg(dev, "\tData Avail Int Support\n");
|
|
|
|
|
|
- if (request_locality(chip, 0) != 0) {
|
|
|
- rc = -ENODEV;
|
|
|
- goto out_err;
|
|
|
- }
|
|
|
-
|
|
|
/* INTERRUPT Setup */
|
|
|
init_waitqueue_head(&chip->vendor.read_queue);
|
|
|
init_waitqueue_head(&chip->vendor.int_queue);
|