From: Jiang Liu Date: Mon, 21 Jan 2013 21:20:46 +0000 (-0800) Subject: PCI: Make device create/destroy logic symmetric X-Git-Tag: v3.9-rc1~82^2~7^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e723f0b4f4ecaf3fdd542124b3f99379ab8df757;p=pandora-kernel.git PCI: Make device create/destroy logic symmetric According to device model documentation, the way to create/destroy PCI devices should be symmetric. The rule is to either use 1) device_register()/device_unregister() or 2) device_initialize()/device_add()/device_del()/put_device(). So change PCI core logic to follow the rule and get rid of the redundant pci_dev_get()/pci_dev_put() pair. Signed-off-by: Jiang Liu Signed-off-by: Yinghai Lu Signed-off-by: Bjorn Helgaas Acked-by: Rafael J. Wysocki --- Reading git-diff-tree failed