|
@@ -436,8 +436,9 @@ static int __devinit agp_amdk7_probe(struct pci_dev *pdev,
|
|
system controller may experience noise due to strong drive strengths
|
|
system controller may experience noise due to strong drive strengths
|
|
*/
|
|
*/
|
|
if (agp_bridge->dev->device == PCI_DEVICE_ID_AMD_FE_GATE_7006) {
|
|
if (agp_bridge->dev->device == PCI_DEVICE_ID_AMD_FE_GATE_7006) {
|
|
- u8 cap_ptr=0;
|
|
|
|
struct pci_dev *gfxcard=NULL;
|
|
struct pci_dev *gfxcard=NULL;
|
|
|
|
+
|
|
|
|
+ cap_ptr = 0;
|
|
while (!cap_ptr) {
|
|
while (!cap_ptr) {
|
|
gfxcard = pci_get_class(PCI_CLASS_DISPLAY_VGA<<8, gfxcard);
|
|
gfxcard = pci_get_class(PCI_CLASS_DISPLAY_VGA<<8, gfxcard);
|
|
if (!gfxcard) {
|
|
if (!gfxcard) {
|