PCI: avoid save the same type of cap multiple times
authorShaohua Li <shaohua.li@intel.com>
Tue, 18 Dec 2007 01:57:09 +0000 (09:57 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:27 +0000 (15:04 -0800)
commit017fc480cc8cc0594dc250951d78e814667ae4c2
tree04efdbe646e8333be11ba6e9a0fc867109d22245
parentec0a3a27fbb5792980b8c3ce4a93bc2ee93d0b35
PCI: avoid save the same type of cap multiple times

Avoid adding the same type of cap multiple times, otherwise we will see dead loop.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c