Commit d026dd46 authored by Linus Torvalds's avatar Linus Torvalds

Don't try to attach a driver to a pci device that already has one.

parent 67cba4d4
......@@ -44,7 +44,7 @@ static int pci_device_probe(struct device * dev)
drv = to_pci_driver(dev->driver);
pci_dev = to_pci_dev(dev);
if (drv->probe) {
if (!pci_dev->driver && drv->probe) {
const struct pci_device_id *id;
id = pci_match_device(drv->id_table, pci_dev);
......
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