]> git.hungrycats.org Git - linux/commitdiff
[AGPGART] Remove duplicate programming of AGP command register.
authorDave Jones <davej@redhat.com>
Fri, 12 Dec 2003 13:00:43 +0000 (13:00 +0000)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Fri, 12 Dec 2003 13:00:43 +0000 (13:00 +0000)
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

index eba93610e43b6effbbc20e2ea693d7cd2704289a..44ff29d4a0393d06d53d630906b5f831c865947b 100644 (file)
@@ -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,