Skip to content
Commit e75f34ce authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
parent f3986205
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