]> err.no Git - linux-2.6/commit
[PATCH] shpchp: detect SHPC capability before doing a lot of work
authorrajesh.shah@intel.com <rajesh.shah@intel.com>
Thu, 13 Oct 2005 19:05:39 +0000 (12:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 22:37:00 +0000 (15:37 -0700)
commit1410dc1cef1e2f5e90c1fcb97041f42e0eee35b4
treedffc17757791d79f2a83b5a85cf21278f3803448
parent424600f9706b20a8a33ad928d3d0326bd88679bc
[PATCH] shpchp: detect SHPC capability before doing a lot of work

The shpc driver registers its probe function for all pci-pci
bridges in the system. Not all of them will be shpc capable, so
look for this capability early in the probe function and return
if there's no work to do on this bridge. The old shpc driver
did some initialization work on all bridges before detecting
that shpc is not supported and unwinds the work it's already done
in that case.

Signed-off-by: Rajesh Shah <rajesh.shah@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/shpchp_core.c