| .. | .. |
|---|
| 521 | 521 | gpu->perfcntrs = perfcntrs; |
|---|
| 522 | 522 | gpu->num_perfcntrs = ARRAY_SIZE(perfcntrs); |
|---|
| 523 | 523 | |
|---|
| 524 | + ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 1); |
|---|
| 525 | + if (ret) |
|---|
| 526 | + goto fail; |
|---|
| 527 | + |
|---|
| 524 | 528 | if (adreno_is_a20x(adreno_gpu)) |
|---|
| 525 | 529 | adreno_gpu->registers = a200_registers; |
|---|
| 526 | 530 | else if (adreno_is_a225(adreno_gpu)) |
|---|
| 527 | 531 | adreno_gpu->registers = a225_registers; |
|---|
| 528 | 532 | else |
|---|
| 529 | 533 | adreno_gpu->registers = a220_registers; |
|---|
| 530 | | - |
|---|
| 531 | | - ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 1); |
|---|
| 532 | | - if (ret) |
|---|
| 533 | | - goto fail; |
|---|
| 534 | 534 | |
|---|
| 535 | 535 | if (!gpu->aspace) { |
|---|
| 536 | 536 | dev_err(dev->dev, "No memory protection without MMU\n"); |
|---|