PCI: pciehp: make check_link_active more helpful
authorYinghai Lu <yinghai@kernel.org>
Fri, 27 Jan 2012 18:55:12 +0000 (10:55 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 14 Feb 2012 16:45:00 +0000 (08:45 -0800)
commit4e2ce405b24eef9f4cc947bf5f430ca27b474f1f
tree94f98ed4f240c44209efe9d2321da27a15feb7bd
parent2f5d8e4ff947ad6673397083b48719cd6c59cd61
PCI: pciehp: make check_link_active more helpful

A few changes:
  - remove the 'inline' and let the complier decide
  - return a bool to indicate whether the link was active
  - add a debug message to indicate link state when it beocmes active

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_hpc.c