Yes it does. "Move the PCI core to start..." describes exactly this
portion of the patch. We have to change from device_register() to
device_add() if we want to grab a reference count on the pci device
before we register it with the driver core. Which we do want to do,
because of the two stage process of creating and registering pci
devices.
> > +struct pci_dev *pci_get_dev (struct pci_dev *dev)
>
> Please fix up to adhere Documentation/CodingStyle (hint: placement
> of the opening brace is wrong).
CodingStyle doesn't _explicitly_ say that this is not allowed :)
I'll fix it next set of pci patches...
> > +{
> > + struct device *tmp;
> > +
> > + if (!dev)
> > + return NULL;
>
> Does it make sense to allow NULL argument here?
Just being safe. We can drop it if it really annoys you, but other
subsystems do the same thing.
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/