]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc/PCI hotplug: de-convolute rpaphp_unconfig_pci_adap
authorlinas@austin.ibm.com <linas@austin.ibm.com>
Fri, 13 Jan 2006 00:26:27 +0000 (18:26 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Feb 2006 02:00:12 +0000 (18:00 -0800)
commit30cc4f823236f78d3c3f2f7486e0f9db68e6686f
treeaa7d9c3b842ded5d205fc70119128e618ef657e8
parentb747dfe73a893f0138543f86980cc1e4a4b616b4
[PATCH] powerpc/PCI hotplug: de-convolute rpaphp_unconfig_pci_adap

Remove general baroqueness.  The function rpaphp_unconfig_pci_adapter()
is really just three lines of code, once all the dbg printks are removed.
And its called in only one place. So replace the call by the thre lines.
Also, provide proper semaphore locking in the affected function
disable_slot()

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Acked-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/rpadlpar_core.c
drivers/pci/hotplug/rpaphp.h
drivers/pci/hotplug/rpaphp_core.c
drivers/pci/hotplug/rpaphp_pci.c