From 7d40047aa15996edeb7e2f529dd9364dfee829d8 Mon Sep 17 00:00:00 2001 From: Dave Jones <davej@codemonkey.org.uk> Date: Thu, 15 May 2003 22:04:46 +0100 Subject: [PATCH] [AGPGART] Fix oops in VIA initialisation. From Christoph. --- drivers/char/agp/via-agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c index b3be15d8285a..7a88368714a1 100644 --- a/drivers/char/agp/via-agp.c +++ b/drivers/char/agp/via-agp.c @@ -384,6 +384,7 @@ static int __init agp_via_probe(struct pci_dev *pdev, bridge->dev = pdev; bridge->capndx = cap_ptr; + bridge->driver = &via_driver; switch (pdev->device) { case PCI_DEVICE_ID_VIA_8367_0: @@ -409,7 +410,6 @@ static int __init agp_via_probe(struct pci_dev *pdev, } /*FALLTHROUGH*/ default: - bridge->driver = &via_driver; break; } -- 2.30.9