From: Yinghai Lu Date: Sat, 30 Nov 2013 22:40:28 +0000 (-0800) Subject: PCI: Move pci_proc_attach_device() to pci_bus_add_device() X-Git-Tag: v3.14-rc1~132^2~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef37702eb3cae2ec35d56ddd4f096cd47fec3f0d;p=pandora-kernel.git PCI: Move pci_proc_attach_device() to pci_bus_add_device() 4f535093cf8f ("PCI: Put pci_dev in device tree as early as possible") moved pci_proc_attach_device() from pci_bus_add_device() to pci_device_add(). This moves it back to pci_bus_add_device(), essentially reverting that part of 4f535093cf8f. This makes it symmetric with pci_stop_dev(), where we call pci_proc_detach_device() and pci_remove_sysfs_dev_files() and set dev->is_added = 0. [bhelgaas: changelog, create sysfs then attach proc for symmetry] Signed-off-by: Yinghai Lu Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed