diff options
-rw-r--r-- | drivers/watchdog/sp5100_tco.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 2b0e000d4377..5dfe86ebdc8b 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c | |||
@@ -500,14 +500,15 @@ static unsigned char sp5100_tco_setupdevice(void) | |||
500 | /* Restore to the low three bits, if chipset is SB8x0(or later) */ | 500 | /* Restore to the low three bits, if chipset is SB8x0(or later) */ |
501 | if (sp5100_tco_pci->revision >= 0x40) { | 501 | if (sp5100_tco_pci->revision >= 0x40) { |
502 | u8 reserved_bit; | 502 | u8 reserved_bit; |
503 | reserved_bit = inb(base_addr) & 0x7; | 503 | outb(base_addr+0, index_reg); |
504 | reserved_bit = inb(data_reg) & 0x7; | ||
504 | val |= (u32)reserved_bit; | 505 | val |= (u32)reserved_bit; |
505 | } | 506 | } |
506 | 507 | ||
507 | /* Re-programming the watchdog timer base address */ | 508 | /* Re-programming the watchdog timer base address */ |
508 | outb(base_addr+0, index_reg); | 509 | outb(base_addr+0, index_reg); |
509 | /* Low three bits of BASE are reserved */ | 510 | /* Low three bits of BASE are reserved */ |
510 | outb((val >> 0) & 0xf8, data_reg); | 511 | outb((val >> 0) & 0xff, data_reg); |
511 | outb(base_addr+1, index_reg); | 512 | outb(base_addr+1, index_reg); |
512 | outb((val >> 8) & 0xff, data_reg); | 513 | outb((val >> 8) & 0xff, data_reg); |
513 | outb(base_addr+2, index_reg); | 514 | outb(base_addr+2, index_reg); |