diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/pci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c index a67bbd54..7641c7be 100644 --- a/drivers/gpu/nvgpu/pci.c +++ b/drivers/gpu/nvgpu/pci.c | |||
@@ -201,6 +201,13 @@ static int nvgpu_pci_probe(struct pci_dev *pdev, | |||
201 | return err; | 201 | return err; |
202 | pci_set_master(pdev); | 202 | pci_set_master(pdev); |
203 | 203 | ||
204 | g->pci_vendor_id = pdev->vendor; | ||
205 | g->pci_device_id = pdev->device; | ||
206 | g->pci_subsystem_vendor_id = pdev->subsystem_vendor; | ||
207 | g->pci_subsystem_device_id = pdev->subsystem_device; | ||
208 | g->pci_class = (pdev->class >> 8) & 0xFFFFU; // we only want base/sub | ||
209 | g->pci_revision = pdev->revision; | ||
210 | |||
204 | g->irq_stall = pdev->irq; | 211 | g->irq_stall = pdev->irq; |
205 | g->irq_nonstall = pdev->irq; | 212 | g->irq_nonstall = pdev->irq; |
206 | if (g->irq_stall < 0) | 213 | if (g->irq_stall < 0) |