From: Eric W. Biederman Date: Sat, 21 Feb 2009 04:16:07 +0000 (-0800) Subject: PCI: pcie_portdriver: fix pcie_port_device_remove X-Git-Tag: v2.6.30-rc1~419^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae40582e9959cdb7bfe4b918be8e3d19f9511798;p=pandora-kernel.git PCI: pcie_portdriver: fix pcie_port_device_remove pcie_port_device_remove currently calls the remove method of port drivers twice. Ouch! We are calling device_for_each_child multiple times for no apparent reason. So make it simple. Place put_device and device_unregister into remove_iter, and throw out the rest. Only call device_for_each_child once. The code is simpler and actually works! Signed-off-by: Eric W. Biederman Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed