diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/agp/intel-gtt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index 2aab0a03ee42..5e6c89e1d5eb 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c | |||
@@ -1539,9 +1539,11 @@ int intel_gmch_probe(struct pci_dev *pdev, | |||
1539 | if (!intel_private.driver) | 1539 | if (!intel_private.driver) |
1540 | return 0; | 1540 | return 0; |
1541 | 1541 | ||
1542 | bridge->driver = &intel_fake_agp_driver; | 1542 | if (bridge) { |
1543 | bridge->dev_private_data = &intel_private; | 1543 | bridge->driver = &intel_fake_agp_driver; |
1544 | bridge->dev = pdev; | 1544 | bridge->dev_private_data = &intel_private; |
1545 | bridge->dev = pdev; | ||
1546 | } | ||
1545 | 1547 | ||
1546 | intel_private.bridge_dev = pci_dev_get(pdev); | 1548 | intel_private.bridge_dev = pci_dev_get(pdev); |
1547 | 1549 | ||