PCI/portdrv: Remove extra get_device()/put_device() for pcie_device
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Dec 2013 21:24:13 +0000 (14:24 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Dec 2013 22:02:55 +0000 (15:02 -0700)
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>
drivers/pci/pcie/portdrv_core.c

Simple merge