aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2005-11-23 21:35:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-09 15:13:16 -0500
commit87d6c5593111844f308af7d5106b3fd259b36514 (patch)
tree5a1832659546e00cd73fe7faa7199a9d8c95b3a2
parent6558b6ab145ceead45632e4214cd5ef14f48f412 (diff)
[PATCH] shpchp: fix improper reference to Mode 1 ECC Capability" bit
The hpc_get_mode1_ECC_cap() function of SHPCHP driver seems to refer the wrong bit for refering the "Mode 1 ECC Capability" bit. This bug seems not to cause any problem so far. But I think this should be fixed. This patch fixes this bug. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/pci/hotplug/shpchp_hpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c
index 3c1d3b4b0408..f5a8bf374634 100644
--- a/drivers/pci/hotplug/shpchp_hpc.c
+++ b/drivers/pci/hotplug/shpchp_hpc.c
@@ -604,7 +604,7 @@ static int hpc_get_mode1_ECC_cap(struct slot *slot, u8 *mode)
604 sec_bus_status = readw(php_ctlr->creg + SEC_BUS_CONFIG); 604 sec_bus_status = readw(php_ctlr->creg + SEC_BUS_CONFIG);
605 605
606 if (pi == 2) { 606 if (pi == 2) {
607 *mode = (sec_bus_status & 0x0100) >> 7; 607 *mode = (sec_bus_status & 0x0100) >> 8;
608 } else { 608 } else {
609 retval = -1; 609 retval = -1;
610 } 610 }