From 2fa72d28f55baa95d7f2f27f38e267cd506ce6d4 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Fri, 12 Dec 2003 13:00:43 +0000 Subject: [AGPGART] Remove duplicate programming of AGP command register. We do this in agp_device_command() which gets called below, so we remove the explicit pci_write_config_dword() Spotted by Bjorn Helgaas. --- drivers/char/agp/generic.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index eba93610e43b..44ff29d4a039 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c @@ -562,9 +562,6 @@ void agp_generic_enable(u32 mode) command = agp_collect_device_status(mode, command); command |= AGPSTAT_AGP_ENABLE; - pci_write_config_dword(agp_bridge->dev, - agp_bridge->capndx + PCI_AGP_COMMAND, command); - /* Do AGP version specific frobbing. */ if(agp_bridge->major_version >= 3) { pci_read_config_dword(agp_bridge->dev, -- cgit v1.2.3