On Fri, Nov 06, 2009 at 05:24:55PM +0800, Dexuan Cui wrote: > diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h > index d92d195..02247ac 100644 > --- a/drivers/pci/pci.h > +++ b/drivers/pci/pci.h > @@ -311,4 +311,12 @@ static inline int pci_resource_alignment(struct pci_dev *dev, > return resource_alignment(res); > } > > +struct pci_dev_reset_methods { > + u16 vendor; > + u16 device; > + int (*reset)(struct pci_dev *dev, int probe); > +}; > + > +extern struct pci_dev_reset_methods pci_dev_reset_methods[]; > + > #endif /* DRIVERS_PCI_H */ Why do it this way instead of having a ->reset method in struct pci_driver? -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html