commit | e75f34ce6633549486a044d64b2a79240d4113a8 | [log] [tgz] |
---|---|---|
author | Bjorn Helgaas <bhelgaas@google.com> | Thu Dec 19 14:24:13 2013 -0700 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Thu Dec 19 15:02:55 2013 -0700 |
tree | 3a3e6ef1a6e0c00cb9fd8996e2744b42f899c412 | |
parent | f39862058e1f278e0495cd9ea57de571e74aa1fe [diff] |
PCI/portdrv: Remove extra get_device()/put_device() for pcie_device Previously pcie_device_init() called get_device() if device_register() for the new pcie_device succeeded, and remove_iter() called put_device() when removing before unregistering the device. But device_register() already increments the reference count in device_add(), so we don't need to do it again here. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>