|
@@ -578,6 +578,9 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,
|
|
|
goto cleanup;
|
|
|
}
|
|
|
|
|
|
+ ibmvtpm->dev = dev;
|
|
|
+ ibmvtpm->vdev = vio_dev;
|
|
|
+
|
|
|
crq_q = &ibmvtpm->crq_queue;
|
|
|
crq_q->crq_addr = (struct ibmvtpm_crq *)get_zeroed_page(GFP_KERNEL);
|
|
|
if (!crq_q->crq_addr) {
|
|
@@ -622,8 +625,6 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,
|
|
|
|
|
|
crq_q->index = 0;
|
|
|
|
|
|
- ibmvtpm->dev = dev;
|
|
|
- ibmvtpm->vdev = vio_dev;
|
|
|
TPM_VPRIV(chip) = (void *)ibmvtpm;
|
|
|
|
|
|
spin_lock_init(&ibmvtpm->rtce_lock);
|