pciehp: fixes typo in dbg_ctrl() in pciehp_hpc.c
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 2 Jun 2008 16:07:46 +0000 (09:07 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 Jun 2008 17:59:54 +0000 (10:59 -0700)
Fixup a typo in dbg_ctrl(); it was fetching SLOTSTATUS twice.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_hpc.c

index a48021d85f22910477d19f79ca42278ebf955b1d..eeb517b1b63d4a0707816a65992674737acde2cb 100644 (file)
@@ -1086,7 +1086,7 @@ static inline void dbg_ctrl(struct controller *ctrl)
        dbg("  Comamnd Completed    : %3s\n", NO_CMD_CMPL(ctrl)? "no" : "yes");
        pciehp_readw(ctrl, SLOTSTATUS, &reg16);
        dbg("Slot Status            : 0x%04x\n", reg16);
-       pciehp_readw(ctrl, SLOTSTATUS, &reg16);
+       pciehp_readw(ctrl, SLOTCTRL, &reg16);
        dbg("Slot Control           : 0x%04x\n", reg16);
 }