Commit 30110724 authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Fix double pci_dev_put()

Paul Mackerras points out that the pci_get_class() call will
properly put away the old PCI device. Blush.
parent 89e54606
...@@ -640,7 +640,6 @@ u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode ...@@ -640,7 +640,6 @@ u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode
cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP); cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP);
if (cap_ptr) if (cap_ptr)
break; break;
pci_dev_put(device);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment